Fix base name bug

This commit is contained in:
crschnick
2025-08-14 03:41:46 +00:00
parent e81f847b0a
commit bbcf9800ed

View File

@@ -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));
}