Skip to content

Commit

Permalink
hadoop: qualify relative path for mkdirs (#2696)
Browse files Browse the repository at this point in the history
  • Loading branch information
tangyoupeng authored Sep 8, 2022
1 parent b724350 commit 4963abd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sdk/java/src/main/java/io/juicefs/JuiceFileSystemImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -1382,6 +1382,7 @@ public boolean mkdirs(Path f, FsPermission permission) throws IOException {
if (f == null) {
throw new IllegalArgumentException("mkdirs path arg is null");
}
f = makeQualified(f);
String path = normalizePath(f);
if ("/".equals(path))
return true;
Expand Down

0 comments on commit 4963abd

Please sign in to comment.