Functions§
- copy
- A wrapper around
std::fs::copywhich 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 atdstalso pointing to target. - copy_
symlink_ 🔒raw - create_
dir - A wrapper around
std::fs::create_dirwhich includes the file path in the panic message. - create_
dir_ all - A wrapper around
std::fs::create_dir_allwhich includes the file path in the panic message. - create_
file - A wrapper around
std::fs::File::createwhich includes the file path in the panic message. - metadata
- A wrapper around
std::fs::metadatawhich includes the file path in the panic message. Note that this will traverse symlinks and will return metadata about the target file. Usesymlink_metadataif you don’t want to traverse symlinks. - read
- A wrapper around
std::fs::readwhich includes the file path in the panic message. - read_
dir - A wrapper around
std::fs::read_dirwhich 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_stringwhich 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_dirwhich includes the directory path in the panic message. - remove_
dir_ all - A wrapper around
std::fs::remove_dir_allwhich includes the file path in the panic message. - remove_
file - A wrapper around
std::fs::remove_filewhich includes the file path in the panic message. - rename
- A wrapper around
std::fs::renamewhich includes the file path in the panic message. - set_
permissions - A wrapper around
std::fs::set_permissionswhich 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_metadatawhich includes the file path in the panic message. Note that this will not traverse symlinks and will return metadata about the filesystem entity itself. Usemetadataif you want to traverse symlinks. - write
- A wrapper around
std::fs::writewhich includes the file path in the panic message.