mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-04-19 23:36:00 -04:00
Fix wrong dir path for pruning rolling backup files
This commit is contained in:
parent
83f03e75da
commit
4cb2ce91df
@ -36,7 +36,7 @@ public class FileUtil {
|
||||
try {
|
||||
Files.copy(origFile, backupFile);
|
||||
|
||||
pruneBackup(backupDir);
|
||||
pruneBackup(backupFileDir);
|
||||
} catch (IOException e) {
|
||||
log.error("Backup key failed " + e.getMessage());
|
||||
e.printStackTrace();
|
||||
@ -55,6 +55,9 @@ public class FileUtil {
|
||||
if (file.isFile()) {
|
||||
if (!file.delete())
|
||||
log.error("Failed to delete file: " + file);
|
||||
else
|
||||
pruneBackup(backupDir);
|
||||
|
||||
} else {
|
||||
pruneBackup(new File(Paths.get(backupDir.getAbsolutePath(), file.getName()).toString()));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user