mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-05-13 20:12:18 -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)
|
||||
deleteDirectory(c);
|
||||
}
|
||||
if (!file.delete())
|
||||
if (file.exists() && !file.delete())
|
||||
throw new FileNotFoundException("Failed to delete file: " + file);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue