mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-10-05 14:41:33 +00:00
Fix unix file path normalize
This commit is contained in:
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());
|
||||
|
||||
Reference in new issue
Block a user