Crate compio_fs

Source
Expand description

Filesystem manipulation operations.

Modules§

named_pipeWindows
Windows named pipes.

Structs§

AsyncFd
A wrapper for IO source, providing implementations for AsyncRead and AsyncWrite.
DirBuilder
A builder used to create directories in various manners.
File
A reference to an open file on the filesystem.
FileType
A structure representing a type of file with accessors for each file type.
Metadata
Metadata information about a file.
OpenOptions
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_dirWindows
Creates a new symlink to a directory on the filesystem.
symlink_fileWindows
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.