mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-06-06 22:29:10 -04:00
add file.exists() check
This commit is contained in:
parent
e5adad637d
commit
260f592f7b
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ public class FileUtil {
|
||||||
for (File c : files)
|
for (File c : files)
|
||||||
deleteDirectory(c);
|
deleteDirectory(c);
|
||||||
}
|
}
|
||||||
if (!file.delete())
|
if (file.exists() && !file.delete())
|
||||||
throw new FileNotFoundException("Failed to delete file: " + file);
|
throw new FileNotFoundException("Failed to delete file: " + file);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue