12 std::string &database_filename) {
13 if (fs::is_regular_file(wallet_path)) {
17 env_directory = wallet_path.parent_path();
18 database_filename = wallet_path.filename().string();
22 env_directory = wallet_path;
23 database_filename =
"wallet.dat";
28 fs::path env_directory;
29 std::string database_filename;
31 return env_directory / database_filename;
void SplitWalletPath(const fs::path &wallet_path, fs::path &env_directory, std::string &database_filename)
fs::path WalletDataFilePath(const fs::path &wallet_path)
Given a wallet directory path or legacy file path, return path to main data file in the wallet databa...