Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/walletutil.cpp
Show All 19 Lines | if (gArgs.IsArgSet("-walletdir")) { | ||||
// GetDataDir | // GetDataDir | ||||
if (fs::is_directory(path / "wallets")) { | if (fs::is_directory(path / "wallets")) { | ||||
path /= "wallets"; | path /= "wallets"; | ||||
} | } | ||||
} | } | ||||
return path; | return path; | ||||
} | } | ||||
WalletLocation::WalletLocation(const std::string &name) | |||||
: m_name(name), m_path(fs::absolute(name, GetWalletDir())) {} | |||||
bool WalletLocation::Exists() const { | |||||
return fs::symlink_status(m_path).type() != fs::file_not_found; | |||||
} |