Module axfs::api

source ·
Expand description

std::fs-like high-level filesystem manipulation operations.

Re-exports

Modules

  • 定义与文件I/O操作相关的trait泛型

Structs

  • A builder used to create directories in various manners.
  • Entries returned by the ReadDir iterator.
  • An object providing access to an open file on the filesystem.
  • Metadata information about a file.
  • Options and flags which can be used to configure how a file is opened.
  • Iterator over the entries in a directory.

Enums

  • Enumeration of possible methods to seek within an I/O object.

Traits

  • The Read trait allows for reading bytes from a source.
  • The Seek trait provides a cursor which can be moved within a stream of bytes.
  • A trait for objects which are byte-oriented sinks.

Functions

  • Returns the canonical, absolute form of a path with all intermediate components normalized.
  • Creates a new, empty directory at the provided path.
  • Recursively create a directory and all of its parent components if they are missing.
  • Returns the current working directory as a String.
  • Look up a file by a given path.
  • Given a path, query the file system to get information about a file, directory, etc.
  • Check if a path exists.
  • Read the entire contents of a file into a bytes vector.
  • Returns an iterator over the entries within a directory.
  • Read the entire contents of a file into a string.
  • Removes an empty directory.
  • Removes a file from the filesystem.
  • Rename a file or directory to a new name. Delete the original file if old already exists.
  • Changes the current working directory to the specified path.
  • Write a slice as the entire contents of a file.

Type Aliases

  • A structure representing a type of file with accessors for each file type. It is returned by Metadata::file_type method.
  • Representation of the various permissions on a file.