diff options
| author | Wladimir J. van der Laan <[email protected]> | 2013-06-09 01:06:11 -0700 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2013-06-09 01:06:11 -0700 |
| commit | a743522216842bf76658deaad550c5cfaed1b814 (patch) | |
| tree | 3055edf92b955eeccaa8e6e802666a61997a4e1c /src/util.cpp | |
| parent | Merge pull request #2746 from Diapolo/pro-file (diff) | |
| parent | Create parent directories if needed in GetDataDir (diff) | |
| download | discoin-a743522216842bf76658deaad550c5cfaed1b814.tar.xz discoin-a743522216842bf76658deaad550c5cfaed1b814.zip | |
Merge pull request #2754 from laanwj/2013_06_create_data_dir
Create parent directories if needed in GetDataDir
Diffstat (limited to 'src/util.cpp')
| -rw-r--r-- | src/util.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.cpp b/src/util.cpp index 0bd296023..2f1f522a6 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -1071,7 +1071,7 @@ const boost::filesystem::path &GetDataDir(bool fNetSpecific) if (fNetSpecific && GetBoolArg("-testnet", false)) path /= "testnet3"; - fs::create_directory(path); + fs::create_directories(path); fCachedPath[fNetSpecific] = true; return path; |