Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/db.cpp
Show All 17 Lines | if (fs::is_regular_file(wallet_path)) { | ||||
database_filename = wallet_path.filename().string(); | database_filename = wallet_path.filename().string(); | ||||
} else { | } else { | ||||
// Normal case: Interpret wallet path as a directory path containing | // Normal case: Interpret wallet path as a directory path containing | ||||
// data and log files. | // data and log files. | ||||
env_directory = wallet_path; | env_directory = wallet_path; | ||||
database_filename = "wallet.dat"; | database_filename = "wallet.dat"; | ||||
} | } | ||||
} | } | ||||
fs::path WalletDataFilePath(const fs::path &wallet_path) { | |||||
fs::path env_directory; | |||||
std::string database_filename; | |||||
SplitWalletPath(wallet_path, env_directory, database_filename); | |||||
return env_directory / database_filename; | |||||
} |