mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-04-21 06:58:55 -04:00
Fix base name bug
This commit is contained in:
@@ -120,10 +120,11 @@ public final class FilePath {
|
||||
}
|
||||
|
||||
public FilePath getBaseName() {
|
||||
var split = value.lastIndexOf(".");
|
||||
if (split == -1) {
|
||||
if (!getFileName().contains(".")) {
|
||||
return this;
|
||||
}
|
||||
|
||||
var split = value.lastIndexOf(".");
|
||||
return FilePath.of(value.substring(0, split));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user