Structs§
- DirBuilder
- A builder for creating directories in various manners.
- DirEntry
- Entries returned by the
ReadDirstream. - Encryption
Keys - Open
Options - Options and flags which can be used to configure how a file is opened.
- ReadDir
- Reads the entries in a directory.
Enums§
- File
- Encryptable replacement for tokio::fs::File
Functions§
- canonicalize
- Returns the canonical, absolute form of a path with all intermediate components normalized and symbolic links resolved.
- copy
- Copies the contents of one file to another. This function will also copy the permission bits of the original file to the destination file. This function will overwrite the contents of to.
- create_
dir - Creates a new, empty directory at the provided path.
- create_
dir_ all - Recursively creates a directory and all of its parent components if they are missing.
- hard_
link - Creates a new hard link on the filesystem.
- metadata
- Given a path, queries the file system to get information about a file, directory, etc.
- read
- Encryptable replacement for tokio::fs::read()
- read_
dir - Returns a stream over the entries within a directory.
- read_
link - Reads a symbolic link, returning the file that the link points to.
- read_
to_ string - Encryptable replacement for tokio::fs::read_to_string()
- remove_
dir - Removes an existing, empty directory.
- remove_
dir_ all - Removes a directory at this path, after removing all its contents. Use carefully!
- remove_
file - Removes a file from the filesystem.
- rename
- Renames a file or directory to a new name, replacing the original file if
toalready exists. - set_
keys - set_
keys_ from_ base - set_
keys_ from_ passphrase - set_
permissions - Changes the permissions found on a file or a directory.
- symlink
- Creates a new symbolic link on the filesystem.
- symlink_
metadata - Queries the file system metadata for a path.
- try_
exists - Returns
Ok(true)if the path points at an existing entity. - write
- Encryptable replacement for tokio::fs::write()