Expand description
Functions§
- A wrapper around
std::fs::copywhich includes the file path in the panic message. - Copy a directory into another.
- A wrapper around
std::fs::create_dirwhich includes the file path in the panic message. - A wrapper around
std::fs::create_dir_allwhich includes the file path in the panic message. - A wrapper around
std::fs::File::createwhich includes the file path in the panic message. - 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. - A wrapper around
std::fs::readwhich includes the file path in the panic message. - A wrapper around
std::fs::read_dirwhich includes the file path in the panic message. - Helper for reading entries in a given directory.
- A wrapper around
std::fs::read_to_stringwhich includes the file path in the panic message. - A wrapper around
std::fs::remove_dirwhich includes the directory path in the panic message. - A wrapper around
std::fs::remove_dir_allwhich includes the file path in the panic message. - A wrapper around
std::fs::remove_filewhich includes the file path in the panic message. - A wrapper around
std::fs::renamewhich includes the file path in the panic message. - A wrapper around
std::fs::set_permissionswhich includes the file path in the panic message. - A function which prints all file names in the directory
dirsimilarly to Unix’sls. Useful for debugging. Usage:eprintln!("{:#?}", shallow_find_dir_entries(some_dir)); - Create a new symbolic link to a directory.
- Create a new symbolic link to a file.
- 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. - A wrapper around
std::fs::writewhich includes the file path in the panic message.