mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-04-19 23:36:00 -04:00
Add prefix to backup dir
This commit is contained in:
parent
bc734fe51b
commit
8d8318a73a
@ -23,7 +23,10 @@ public class FileUtil {
|
||||
|
||||
File origFile = new File(Paths.get(dir.getAbsolutePath(), fileName).toString());
|
||||
if (origFile.exists()) {
|
||||
File backupFileDir = new File(Paths.get(backupDir.getAbsolutePath(), fileName.replace(".", "_")).toString());
|
||||
String dirName = "backups_" + fileName;
|
||||
if (dirName.contains("."))
|
||||
dirName = dirName.replace(".", "_");
|
||||
File backupFileDir = new File(Paths.get(backupDir.getAbsolutePath(), dirName).toString());
|
||||
if (!backupFileDir.exists())
|
||||
if (!backupFileDir.mkdir())
|
||||
log.warn("make backupFileDir failed");
|
||||
|
Loading…
x
Reference in New Issue
Block a user