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,8 +219,10 @@ public class Storage {
} }
public void backupWallet() throws IOException { public void backupWallet() throws IOException {
if(walletFile.toPath().startsWith(getWalletsDir().toPath())) {
backupWallet(null); backupWallet(null);
} }
}
public void backupTempWallet() { public void backupTempWallet() {
try { try {