Skip to content

Commit 41dbc48

Browse files
committed
Removed call to TryCreateDirectory from GetDefaultDataDir in src/util.cpp.
See #7845 (comment). Also refactored `GetDefaultDataDir` function to return path for Mac in one expression.
1 parent 065c6b4 commit 41dbc48

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/util.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -471,9 +471,7 @@ boost::filesystem::path GetDefaultDataDir()
471471
pathRet = fs::path(pszHome);
472472
#ifdef MAC_OSX
473473
// Mac
474-
pathRet /= "Library/Application Support";
475-
TryCreateDirectory(pathRet);
476-
return pathRet / "Bitcoin";
474+
return pathRet / "Library/Application Support/Bitcoin";
477475
#else
478476
// Unix
479477
return pathRet / ".bitcoin";

0 commit comments

Comments
 (0)