Expand description
Asynchronous filesystem manipulation operations.
This module contains basic methods and types for manipulating the contents of the local filesystem from within the context of the Tokio runtime.
Unlike most other Tokio APIs, the filesystem APIs must be used from the context of the Tokio runtime as they require Tokio specific features to function.
Modules
Structs
A reference to an open file on the filesystem.
Options and flags which can be used to configure how a file is opened.
A future used to open a file and read its entire contents into a buffer.
A future used to open a file for writing and write the entire contents of some data to it.
Functions
Creates a new, empty directory at the provided path
Recursively create a directory and all of its parent components if they are missing.
Creates a new hard link on the filesystem.
Queries the file system metadata for a path.
Creates a future which will open a file for reading and read the entire contents into a buffer and return said buffer.
Returns a stream over the entries within a directory.
Reads a symbolic link, returning the file that the link points to.
Removes an existing, empty directory.
Removes a file from the filesystem.
Rename a file or directory to a new name, replacing the original file if
to
already exists.
Changes the permissions found on a file or a directory.
Queries the file system metadata for a path.
Creates a future that will open a file for writing and write the entire
contents of contents
to it.