Skip to content

Commit 9587a9c

Browse files
committed
Default walletdir is wallets/ if it exists
1 parent d987889 commit 9587a9c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/wallet/walletutil.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ fs::path GetWalletDir()
1717
}
1818
} else {
1919
path = GetDataDir();
20+
// If a wallets directory exists, use that, otherwise default to GetDataDir
21+
if (fs::is_directory(path / "wallets")) {
22+
path /= "wallets";
23+
}
2024
}
2125

2226
return path;

0 commit comments

Comments
 (0)