mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-04 04:02:23 +02:00
Make ArgsManager.GetDataDirPath
private and drop needless suffix
This commit is contained in:
parent
4d8189f620
commit
13bd8bb053
@ -414,7 +414,7 @@ const fs::path& ArgsManager::GetBlocksDirPath() const
|
|||||||
return path;
|
return path;
|
||||||
}
|
}
|
||||||
|
|
||||||
const fs::path& ArgsManager::GetDataDirPath(bool net_specific) const
|
const fs::path& ArgsManager::GetDataDir(bool net_specific) const
|
||||||
{
|
{
|
||||||
LOCK(cs_args);
|
LOCK(cs_args);
|
||||||
fs::path& path = net_specific ? m_cached_network_datadir_path : m_cached_datadir_path;
|
fs::path& path = net_specific ? m_cached_network_datadir_path : m_cached_datadir_path;
|
||||||
|
@ -274,7 +274,7 @@ public:
|
|||||||
* @return Absolute path on success, otherwise an empty path when a non-directory path would be returned
|
* @return Absolute path on success, otherwise an empty path when a non-directory path would be returned
|
||||||
* @post Returned directory path is created unless it is empty
|
* @post Returned directory path is created unless it is empty
|
||||||
*/
|
*/
|
||||||
const fs::path& GetDataDirBase() const { return GetDataDirPath(false); }
|
const fs::path& GetDataDirBase() const { return GetDataDir(false); }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get data directory path with appended network identifier
|
* Get data directory path with appended network identifier
|
||||||
@ -282,16 +282,7 @@ public:
|
|||||||
* @return Absolute path on success, otherwise an empty path when a non-directory path would be returned
|
* @return Absolute path on success, otherwise an empty path when a non-directory path would be returned
|
||||||
* @post Returned directory path is created unless it is empty
|
* @post Returned directory path is created unless it is empty
|
||||||
*/
|
*/
|
||||||
const fs::path& GetDataDirNet() const { return GetDataDirPath(true); }
|
const fs::path& GetDataDirNet() const { return GetDataDir(true); }
|
||||||
|
|
||||||
/**
|
|
||||||
* Get data directory path
|
|
||||||
*
|
|
||||||
* @param net_specific Append network identifier to the returned path
|
|
||||||
* @return Absolute path on success, otherwise an empty path when a non-directory path would be returned
|
|
||||||
* @post Returned directory path is created unless it is empty
|
|
||||||
*/
|
|
||||||
const fs::path& GetDataDirPath(bool net_specific = true) const;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Clear cached directory paths
|
* Clear cached directory paths
|
||||||
@ -453,6 +444,15 @@ public:
|
|||||||
void LogArgs() const;
|
void LogArgs() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
/**
|
||||||
|
* Get data directory path
|
||||||
|
*
|
||||||
|
* @param net_specific Append network identifier to the returned path
|
||||||
|
* @return Absolute path on success, otherwise an empty path when a non-directory path would be returned
|
||||||
|
* @post Returned directory path is created unless it is empty
|
||||||
|
*/
|
||||||
|
const fs::path& GetDataDir(bool net_specific) const;
|
||||||
|
|
||||||
// Helper function for LogArgs().
|
// Helper function for LogArgs().
|
||||||
void logArgsPrefix(
|
void logArgsPrefix(
|
||||||
const std::string& prefix,
|
const std::string& prefix,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user