Module fs_err::tokio

source ·
Available on crate feature tokio only.
Expand description

Tokio-specific wrappers that use fs_err error messages.

Structs

  • A builder for creating directories in various manners.
  • Entries returned by the ReadDir stream.
  • Wrapper around tokio::fs::File which adds more helpful information to all errors.
  • Options and flags which can be used to configure how a file is opened.
  • Reads the entries in a directory.

Functions

  • Returns the canonical, absolute form of a path with all intermediate components normalized and symbolic links resolved.
  • 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.
  • Creates a new, empty directory at the provided path.
  • Recursively creates a directory and all of its parent components if they are missing.
  • Creates a new hard link on the filesystem.
  • Given a path, queries the file system to get information about a file, directory, etc.
  • Reads the entire contents of a file into a bytes vector.
  • Returns a stream over the entries within a directory.
  • Reads a symbolic link, returning the file that the link points to.
  • Creates a future which will open a file for reading and read the entire contents into a string and return said string.
  • Removes an existing, empty directory.
  • Removes a directory at this path, after removing all its contents. Use carefully!
  • Removes a file from the filesystem.
  • Renames 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.
  • symlinkDeprecated
    Creates a new directory symlink on the filesystem.
  • Creates a new directory symlink on the filesystem.
  • Creates a new file symbolic link on the filesystem.
  • 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.