Skip to content

Commit 7566af4

Browse files
hebastofanquake
authored andcommitted
doc: Update data directory path comments
Github-Pull: #20080 Rebased-From: ad5cef5
1 parent 09261de commit 7566af4

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/util/system.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -556,10 +556,9 @@ void PrintExceptionContinue(const std::exception* pex, const char* pszThread)
556556

557557
fs::path GetDefaultDataDir()
558558
{
559-
// Windows < Vista: C:\Documents and Settings\Username\Application Data\Bitcoin
560-
// Windows >= Vista: C:\Users\Username\AppData\Roaming\Bitcoin
561-
// Mac: ~/Library/Application Support/Bitcoin
562-
// Unix: ~/.bitcoin
559+
// Windows: C:\Users\Username\AppData\Roaming\Bitcoin
560+
// macOS: ~/Library/Application Support/Bitcoin
561+
// Unix-like: ~/.bitcoin
563562
#ifdef WIN32
564563
// Windows
565564
return GetSpecialFolderPath(CSIDL_APPDATA) / "Bitcoin";
@@ -571,10 +570,10 @@ fs::path GetDefaultDataDir()
571570
else
572571
pathRet = fs::path(pszHome);
573572
#ifdef MAC_OSX
574-
// Mac
573+
// macOS
575574
return pathRet / "Library/Application Support/Bitcoin";
576575
#else
577-
// Unix
576+
// Unix-like
578577
return pathRet / ".bitcoin";
579578
#endif
580579
#endif

0 commit comments

Comments
 (0)