Module files

Source
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 use Utf8Path::try_from(), but get compiler errors.