This commit is contained in:
2025-09-14 10:51:42 +08:00
parent 56080634c7
commit d991b4077b
6 changed files with 85 additions and 1 deletions
@@ -47,6 +47,16 @@ public class OsPath implements Path {
return new OsPath(path);
}
public static OsPath of(URI uri) {
return new OsPath(Paths.get(uri));
}
public static OsPath of(File file) {
return new OsPath(file.toPath());
}
public static OsPath getCwd(){
return new OsPath(Paths.get(""));
}
@Override
public @NotNull FileSystem getFileSystem() {
return path.getFileSystem();