Fixed ResourceFileSystem in standalone. Closes #6.

This commit is contained in:
Florian Nücke
2021-01-10 12:13:23 +01:00
parent 0ec9f14e59
commit 2b758d929a

View File

@@ -38,7 +38,7 @@ public final class ResourceFileSystem implements FileSystem {
final String path = location.getPath();
assert path.startsWith(rootLocationPath);
final String localPath = path.substring(rootLocationPath.length());
if (localPath.isEmpty()) {
if (localPath.isEmpty() || "/".equals(localPath)) {
continue; // Skip the directory we're using as root.
}