mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-04-19 23:36:00 -04:00
add file.exists() check
This commit is contained in:
parent
e5adad637d
commit
260f592f7b
@ -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…
x
Reference in New Issue
Block a user