aboutsummaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorMarko Bencun <marko.bencun@monetas.net>2017-02-22 18:10:00 +0900
committerMarko Bencun <marko.bencun@monetas.net>2017-06-14 00:04:13 +0200
commit1d1ea9f0962a331c21a3029a0302e5906a396f56 (patch)
tree0d4f9a7b2ff1d68ad35fa42cf05f05fff0ae6b51 /src/util.h
parenta4ca0b042365061020627a8c045cddacea3312ec (diff)
downloadbitcoin-1d1ea9f0962a331c21a3029a0302e5906a396f56.tar.xz
Turn TryCreateDirectory() into TryCreateDirectories()
Use case: TryCreateDirectory(GetDataDir() / "blocks" / "index") would fail if the blocks directory was not explicitly created before. The line that did so was in a weird location and could be removed as a result.
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.h b/src/util.h
index 229478d835..18a238554b 100644
--- a/src/util.h
+++ b/src/util.h
@@ -153,7 +153,7 @@ bool TruncateFile(FILE *file, unsigned int length);
int RaiseFileDescriptorLimit(int nMinFD);
void AllocateFileRange(FILE *file, unsigned int offset, unsigned int length);
bool RenameOver(fs::path src, fs::path dest);
-bool TryCreateDirectory(const fs::path& p);
+bool TryCreateDirectories(const fs::path& p);
fs::path GetDefaultDataDir();
const fs::path &GetDataDir(bool fNetSpecific = true);
void ClearDatadirCache();