Skip to content

Commit

Permalink
fix(jophiel): create fs base dir for the first time when a child path…
Browse files Browse the repository at this point in the history
… is provided
  • Loading branch information
fushar committed Jun 15, 2023
1 parent 6c06f66 commit f2bef39
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ public LocalFileSystem(Path baseDir) {
@Override
public void createDirectory(Path dirPath) {
try {
Files.createDirectories(baseDir.resolve(dirPath), PosixFilePermissions.asFileAttribute(PERMISSION_700));
Files.createDirectories(
dirPath == null ? baseDir : baseDir.resolve(dirPath),
PosixFilePermissions.asFileAttribute(PERMISSION_700));
} catch (IOException e) {
throw new RuntimeException(e);
}
Expand Down

0 comments on commit f2bef39

Please sign in to comment.