mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 21:12:48 +01:00
Removed call to TryCreateDirectory
from GetDefaultDataDir
in src/util.cpp
.
See https://github.com/bitcoin/bitcoin/issues/7845#issuecomment-207684728.
Also refactored `GetDefaultDataDir` function to return path for Mac in one expression.
Github-Pull: #7850
Rebased-From: 41dbc4849e
This commit is contained in:
parent
7e71785c40
commit
06c73a1751
@ -471,9 +471,7 @@ boost::filesystem::path GetDefaultDataDir()
|
|||||||
pathRet = fs::path(pszHome);
|
pathRet = fs::path(pszHome);
|
||||||
#ifdef MAC_OSX
|
#ifdef MAC_OSX
|
||||||
// Mac
|
// Mac
|
||||||
pathRet /= "Library/Application Support";
|
return pathRet / "Library/Application Support/Bitcoin";
|
||||||
TryCreateDirectory(pathRet);
|
|
||||||
return pathRet / "Bitcoin";
|
|
||||||
#else
|
#else
|
||||||
// Unix
|
// Unix
|
||||||
return pathRet / ".bitcoin";
|
return pathRet / ".bitcoin";
|
||||||
|
Loading…
Reference in New Issue
Block a user