aboutsummaryrefslogtreecommitdiff
path: root/src/util/fs_helpers.h
AgeCommit message (Collapse)Author
2024-06-27util: add perm string helper functionswillcl-ark
PermsToSymbolicString will convert from fs::perms to string type 'rwxrwxrwx'. InterpretPermString will convert from a user-supplied "perm string" such as 'owner', 'group' or 'all, into appropriate fs::perms.
2023-10-26Remove DirIsWritable, GetUniquePathMarcoFalke
2023-10-26Return LockResult::ErrorWrite in LockDirectoryMarcoFalke
This allows the caller to remove a call to DirIsWritable(), which did a similar check. Users should not notice any different behavior.
2023-10-26refactor: Return enum in LockDirectoryMarcoFalke
This makes it easier to add more Error cases in the future. Also, add missing util namespace.
2023-03-23refactor: Move fs.* to util/fs.*TheCharlatan
The fs.* files are already part of the libbitcoin_util library. With the introduction of the fs_helpers.* it makes sense to move fs.* into the util/ directory as well.
2023-03-23refactor: Extract util/fs_helpers from util/systemBen Woosley
This is an extraction of filesystem related functions from util/system into their own utility file. The background of this commit is an ongoing effort to decouple the libbitcoinkernel library from the ArgsManager defined in system.h. Moving these functions out of system.h allows including them from a separate source file without including the ArgsManager definitions from system.h.