diff options
| author | murrayn <[email protected]> | 2018-03-07 03:08:55 -0800 |
|---|---|---|
| committer | murrayn <[email protected]> | 2018-03-14 19:07:30 -0700 |
| commit | 8674e74b47c1f6e86a367cfbc738fcc9812b616b (patch) | |
| tree | acf9d52938e2021e4dcb9ad1c89e02ae8362d82a /src/util.h | |
| parent | Merge #11372: Address encoding cleanup (diff) | |
| download | discoin-8674e74b47c1f6e86a367cfbc738fcc9812b616b.tar.xz discoin-8674e74b47c1f6e86a367cfbc738fcc9812b616b.zip | |
Provide relevant error message if datadir is not writable.
Diffstat (limited to 'src/util.h')
| -rw-r--r-- | src/util.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h index e4170d8aa..3e1937549 100644 --- a/src/util.h +++ b/src/util.h @@ -174,6 +174,7 @@ int RaiseFileDescriptorLimit(int nMinFD); void AllocateFileRange(FILE *file, unsigned int offset, unsigned int length); bool RenameOver(fs::path src, fs::path dest); bool LockDirectory(const fs::path& directory, const std::string lockfile_name, bool probe_only=false); +bool DirIsWritable(const fs::path& directory); /** Release all directory locks. This is used for unit testing only, at runtime * the global destructor will take care of the locks. |