Skip to content

Commit

Permalink
πŸš€ Reformatted Code!
Browse files Browse the repository at this point in the history
  • Loading branch information
omegaui committed Mar 25, 2023
1 parent d9db3eb commit 1da7782
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/omegaui/io/storage/FileUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public static String read(File file){
public static boolean write(File file, String content){
File parent = file.getParentFile();
if(parent != null) {
if(!parent.mkdirs()){
if(!parent.exists() && !parent.mkdirs()){
System.err.println("Cannot construct the parent directories: " + file);
return false;
}
Expand Down

0 comments on commit 1da7782

Please sign in to comment.