Skip to content

Commit ff0ab59

Browse files
author
burdo
committed
mkdir should return true if already exists
1 parent 115202b commit ff0ab59

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/org/comroid/api/io/FileHandle.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ public boolean isDirectory() {
8383

8484
@Override
8585
public boolean mkdirs() {
86+
if (exists()) return true;
8687
if (isDirectory())
8788
return super.mkdirs();
8889
else return getParentFile().mkdirs();

0 commit comments

Comments
 (0)