Expand description
Utilities for dealing with files, including wrappers around std::fs
APIs.
Functions§
- create
- Ensure that a file exists with the specified permissions, creating it and its parent directories as needed.
- create_
dir_ all - Same as
std::fs::create_dir_all()
but with a better error message. - home_
dir - Return path to user’s home directory if we can discover it.
- log_dir
- The directory to which we write log files.
- remove_
broken_ symlink - Remove a broken symlink.
- to_
utf8_ path - Convert a std path to a
Utf8Path
. We should be able to useUtf8Path::try_from()
, but get compiler errors.