diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2020-10-16 18:32:43 +0300 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2020-11-06 15:47:47 +0800 |
commit | 7566af419f3e7060152ae062f5a578f543a16a5a (patch) | |
tree | 6e13cade962fb6e655b5e77c6d22e8762286e549 /src/util/system.cpp | |
parent | 09261de6edd7f9fd876607fef350995052da63ba (diff) | |
download | bitcoin-7566af419f3e7060152ae062f5a578f543a16a5a.tar.xz |
doc: Update data directory path comments
Github-Pull: #20080
Rebased-From: ad5cef5dfdd5802fc187a52e74d940a52f420a51
Diffstat (limited to 'src/util/system.cpp')
-rw-r--r-- | src/util/system.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/util/system.cpp b/src/util/system.cpp index 320d695470..702397ec3b 100644 --- a/src/util/system.cpp +++ b/src/util/system.cpp @@ -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 |