dont backup wallets outside of wallets folder

This commit is contained in:
Craig Raw 2021-05-12 14:52:19 +02:00
parent 8f4cf9f2a0
commit 8bc8bdb2f2

View file

@ -219,7 +219,9 @@ public class Storage {
} }
public void backupWallet() throws IOException { public void backupWallet() throws IOException {
backupWallet(null); if(walletFile.toPath().startsWith(getWalletsDir().toPath())) {
backupWallet(null);
}
} }
public void backupTempWallet() { public void backupTempWallet() {