mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-05 11:16:24 +00:00
doc: Update data directory path comments
Github-Pull: #20080 Rebased-From: ad5cef5dfdd5802fc187a52e74d940a52f420a51
This commit is contained in:
parent
09261de6ed
commit
7566af419f
@ -556,10 +556,9 @@ void PrintExceptionContinue(const std::exception* pex, const char* pszThread)
|
||||
|
||||
fs::path GetDefaultDataDir()
|
||||
{
|
||||
// Windows < Vista: C:\Documents and Settings\Username\Application Data\Bitcoin
|
||||
// Windows >= Vista: C:\Users\Username\AppData\Roaming\Bitcoin
|
||||
// Mac: ~/Library/Application Support/Bitcoin
|
||||
// Unix: ~/.bitcoin
|
||||
// Windows: C:\Users\Username\AppData\Roaming\Bitcoin
|
||||
// macOS: ~/Library/Application Support/Bitcoin
|
||||
// Unix-like: ~/.bitcoin
|
||||
#ifdef WIN32
|
||||
// Windows
|
||||
return GetSpecialFolderPath(CSIDL_APPDATA) / "Bitcoin";
|
||||
@ -571,10 +570,10 @@ fs::path GetDefaultDataDir()
|
||||
else
|
||||
pathRet = fs::path(pszHome);
|
||||
#ifdef MAC_OSX
|
||||
// Mac
|
||||
// macOS
|
||||
return pathRet / "Library/Application Support/Bitcoin";
|
||||
#else
|
||||
// Unix
|
||||
// Unix-like
|
||||
return pathRet / ".bitcoin";
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user