Expand description
Filesystem manipulation operations.
Modules§
- named_
pipe Windows - Windows named pipes.
Structs§
- AsyncFd
- A wrapper for IO source, providing implementations for
AsyncRead
andAsyncWrite
. - DirBuilder
- A builder used to create directories in various manners.
- File
- A reference to an open file on the filesystem.
- File
Type - A structure representing a type of file with accessors for each file type.
- Metadata
- Metadata information about a file.
- Open
Options - Options and flags which can be used to configure how a file is opened.
- Permissions
- Representation of the various permissions on a file.
- Stderr
- A handle to the standard output stream of a process.
- Stdin
- A handle to the standard input stream of a process.
- Stdout
- A handle to the standard output stream of a process.
Functions§
- create_
dir - Creates a new, empty directory at the provided path.
- create_
dir_ all - Recursively create 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, query the file system to get information about a file, directory, etc.
- read
- Read the entire contents of a file into a bytes vector.
- remove_
dir - Removes an empty directory.
- remove_
file - Removes a file from the filesystem.
- rename
- Rename a file or directory to a new name, replacing the original file if
to
already exists. - set_
permissions - Changes the permissions found on a file or a directory.
- stderr
- Constructs a handle to the standard error of the current process.
- stdin
- Constructs a handle to the standard input of the current process.
- stdout
- Constructs a handle to the standard output of the current process.
- symlink_
dir Windows - Creates a new symlink to a directory on the filesystem.
- symlink_
file Windows - Creates a new symlink to a non-directory file on the filesystem.
- symlink_
metadata - Query the metadata about a file without following symlinks.
- write
- Write a slice as the entire contents of a file.