fix: correctly convert virtual to real path
This commit is contained in:
parent
031f78ebf1
commit
4b0bbf5190
@ -10,7 +10,9 @@ public class PhysicalFilesystem implements Filesystem {
|
|||||||
public final Path root;
|
public final Path root;
|
||||||
|
|
||||||
private Path getPath(String name) {
|
private Path getPath(String name) {
|
||||||
return root.resolve(name.replace("\\", "/")).normalize();
|
var absolutized = Path.of("/" + name.replace("\\", "/")).normalize().toString();
|
||||||
|
var res = Path.of(root.toString() + absolutized).normalize();
|
||||||
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void checkMode(Path path, Mode mode) {
|
private void checkMode(Path path, Mode mode) {
|
||||||
|
Loading…
Reference in New Issue
Block a user