Fix unix file path normalize

This commit is contained in:
crschnick committed 2026-09-17 14:42:44 +00:00
1 parent dfbe078ed0
commit af3c9c8246
1 file changed
+3 -2
@@ -219,8 +219,9 @@ public final class FilePath {
}
public FilePath toUnix() {
if (value.equals("/")) {
return this;
var split = split();
if (split.size() == 0) {
return FilePath.of("/");
}
var joined = String.join("/", split());