Fix empty path resolving

This commit is contained in:
Blue (Lukas Rieger) 2020-03-26 12:07:17 +01:00
parent 015b38311d
commit 85f5d8947b
1 changed files with 1 additions and 0 deletions

View File

@ -113,6 +113,7 @@ public class FolderFileAccess implements FileAccess {
}
private Path resolve(String path) {
if (path.isEmpty() || "/".equals(path)) return folder.toPath();
if (File.separatorChar != '/') path = path.replace('/', File.separatorChar);
if (path.charAt(0) == '/') path = path.substring(1);
Path resolve = folder.toPath();