Module fs Copy item path Source DirEntry Directory File Metadata Mode OpenOptions ReadDir FileType copy_file Copies the file at src, to the dest, overwriting anything at dest.
Returns a handle to the new file. create_dir Tries to create a directory at the specified path create_dir_all Tries to create a directory at the specified path create_dir_mode Create a directory with the given mode exists Checks if anything exists at the provided path.
Will false-negative if the path is empty. metadata Reads metadata at path read Reads a file into a newly allocated vec read_to_string Reads a file into a newly allocated vec remove_dir Tries to remove a directory from the filesystem at the specified path remove_dir_all Tries to recursively remove a directory and its contents from the filesystem at the specified path.
Potentially very destructive remove_file Tries to remove a file from the filesystem at the specified path rename Renames src to dest, can be used to move files or directories.
Will overwrite anything currently at dest. write Attempts to write the entire contents of buf into the path specified at path.
If no file exists at path one will be created.
If a file exists at path it will be overwritten.
Use File and open with append to append to a file.