Functions§
- copy
- A wrapper around
std::fs::copy
which includes the file path in the panic message. - copy_
dir_ all - Copy a directory into another. This will not traverse symlinks; instead, it will create new symlinks pointing at target paths that symlinks in the original directory points to.
- copy_
symlink - Given a symlink at
src
, read its target, then create a new symlink atdst
also pointing to target. - copy_
symlink_ 🔒raw - create_
dir - A wrapper around
std::fs::create_dir
which includes the file path in the panic message. - create_
dir_ all - A wrapper around
std::fs::create_dir_all
which includes the file path in the panic message. - create_
file - A wrapper around
std::fs::File::create
which includes the file path in the panic message. - metadata
- A wrapper around
std::fs::metadata
which includes the file path in the panic message. Note that this will traverse symlinks and will return metadata about the target file. Usesymlink_metadata
if you don’t want to traverse symlinks. - read
- A wrapper around
std::fs::read
which includes the file path in the panic message. - read_
dir - A wrapper around
std::fs::read_dir
which includes the file path in the panic message. - read_
dir_ entries - Helper for reading entries in a given directory.
- read_
to_ string - A wrapper around
std::fs::read_to_string
which includes the file path in the panic message. - recursive_
remove - A wrapper around [
build_helper::fs::recursive_remove
] which includes the file path in the panic message. - remove_
dir - A wrapper around
std::fs::remove_dir
which includes the directory path in the panic message. - remove_
dir_ all - A wrapper around
std::fs::remove_dir_all
which includes the file path in the panic message. - remove_
file - A wrapper around
std::fs::remove_file
which includes the file path in the panic message. - rename
- A wrapper around
std::fs::rename
which includes the file path in the panic message. - set_
permissions - A wrapper around
std::fs::set_permissions
which includes the file path in the panic message. - shallow_
find_ dir_ entries - List directory entries immediately under the given
dir
. - symlink_
dir - Create a new symbolic link to a directory.
- symlink_
file - Create a new symbolic link to a file.
- symlink_
metadata - A wrapper around
std::fs::symlink_metadata
which includes the file path in the panic message. Note that this will not traverse symlinks and will return metadata about the filesystem entity itself. Usemetadata
if you want to traverse symlinks. - write
- A wrapper around
std::fs::write
which includes the file path in the panic message.