Skip to content

Commit 1da7782

Browse files
committed
🚀 Reformatted Code!
1 parent d9db3eb commit 1da7782

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/main/java/omegaui/io/storage/FileUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public static String read(File file){
7070
public static boolean write(File file, String content){
7171
File parent = file.getParentFile();
7272
if(parent != null) {
73-
if(!parent.mkdirs()){
73+
if(!parent.exists() && !parent.mkdirs()){
7474
System.err.println("Cannot construct the parent directories: " + file);
7575
return false;
7676
}

0 commit comments

Comments
 (0)