We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
FileUtils.java
1 parent 61a7352 commit e5768a8Copy full SHA for e5768a8
src/main/java/omegaui/io/storage/FileUtils.java
@@ -69,7 +69,7 @@ public static String read(File file){
69
*/
70
public static boolean write(File file, String content){
71
File parent = file.getParentFile();
72
- if(parent != null) {
+ if(parent != null && !parent.exists()) {
73
if(!parent.mkdirs()){
74
System.err.println("Cannot construct the parent directories: " + file);
75
return false;
0 commit comments