Module tokio::fs

source ·
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

Types for working with File.
OS-specific functionality.

Structs

A reference to an open file on the filesystem.
Options and flags which can be used to configure how a file is opened.

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.
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.