Module fs

Source
Expand description

Filesystem manipulation operations.

Structs§

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.

Functions§

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.
symlink_metadata
Query the metadata about a file without following symlinks.
write
Write a buffer as the entire contents of a file.