diff options
author | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2023-07-14 12:41:53 +0200 |
---|---|---|
committer | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2023-10-26 10:32:56 +0200 |
commit | fa3da629a1aebcb4500803d7417feed8e34285b0 (patch) | |
tree | 4f2cc89bf67c6bb0be0f43a6154886546ccddcd6 /src/util/fs_helpers.cpp | |
parent | fad3a9793b71df5bb0b17cc3758cf3466d08c015 (diff) | |
download | bitcoin-fa3da629a1aebcb4500803d7417feed8e34285b0.tar.xz |
Remove DirIsWritable, GetUniquePath
Diffstat (limited to 'src/util/fs_helpers.cpp')
-rw-r--r-- | src/util/fs_helpers.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/util/fs_helpers.cpp b/src/util/fs_helpers.cpp index 738d9bba44..171b73d171 100644 --- a/src/util/fs_helpers.cpp +++ b/src/util/fs_helpers.cpp @@ -13,7 +13,6 @@ #include <sync.h> #include <tinyformat.h> #include <util/fs.h> -#include <util/getuniquepath.h> #include <util/syserror.h> #include <cerrno> @@ -94,19 +93,6 @@ void ReleaseDirectoryLocks() dir_locks.clear(); } -bool DirIsWritable(const fs::path& directory) -{ - fs::path tmpFile = GetUniquePath(directory); - - FILE* file = fsbridge::fopen(tmpFile, "a"); - if (!file) return false; - - fclose(file); - remove(tmpFile); - - return true; -} - bool CheckDiskSpace(const fs::path& dir, uint64_t additional_bytes) { constexpr uint64_t min_disk_space = 52428800; // 50 MiB |