Expand description
Filesystem utilities.
Re-exports§
pub use dir_entry::_WindowsDirEntryExt;
pub use file_type::_WindowsFileTypeExt;
pub use metadata::_WindowsByHandle;
Structs§
- Access modes for use with [
DirExt::access
]. - A builder used to create directories in various manners.
- Entries returned by the
ReadDir
iterator. - Options and flags which can be used to configure how a directory is created.
- A structure representing a type of file with accessors for each file type.
- Metadata information about a file.
- Options and flags which can be used to configure how a file is opened.
- Representation of the various permissions on a file.
- Iterator over the entries in a directory.
Enums§
- Access modes for use with [
DirExt::access
]. - Should symlinks be followed in the last component of a path?
- A value for specifying a time.
Traits§
- Windows-specific extensions to [
fs::File
]. - Windows-specific extensions for
FileType
. - Windows-specific extensions to
Metadata
. - Windows-specific extensions to [
fs::OpenOptions
].
Functions§
- Canonicalize the given path, ensuring that the resolution of the path never escapes the directory tree rooted at
start
. - Canonicalize the given path, ensuring that the resolution of the path never escapes the directory tree rooted at
start
. - Copies the contents of one file to another.
- Perform a
mkdirat
-like operation, ensuring that the resolution of the path never escapes the directory tree rooted atstart
. - Perform a
linkat
-like operation, ensuring that the resolution of the path never escapes the directory tree rooted atstart
. - Return a pair of booleans indicating whether the given file is opened for reading and writing, respectively.
- Perform an
openat
-like operation, ensuring that the resolution of the path never escapes the directory tree rooted atstart
. - Open a file named by a bare path, using the host process’ ambient authority.
- Open a directory named by a bare path, using the host process’ ambient authority.
- Open a directory by performing an
openat
-like operation, ensuring that the resolution of the path never escapes the directory tree rooted atstart
. - Similar to
open_dir
, but fails if the path names a symlink. - Open the parent directory of a given open directory, using the host process’ ambient authority.
- Like
read_dir
but operates on the base directory itself, rather than on a path based on it. - Construct a
ReadDir
to iterate over the contents of a directory, ensuring that the resolution of the path never escapes the directory tree rooted atstart
. - Perform a
readlinkat
-like operation, ensuring that the resolution of the path never escapes the directory tree rooted atstart
, and also verifies that the link target is not absolute. - Perform a
readlinkat
-like operation, ensuring that the resolution of the link path never escapes the directory tree rooted atstart
. - Perform a
rmdirat
-like operation, ensuring that the resolution of the path never escapes the directory tree rooted atstart
. - Removes a directory and all of its contents.
- Perform a
remove_fileat
-like operation, ensuring that the resolution of the path never escapes the directory tree rooted atstart
. - Given an open directory handle, delete the directory.
- Given an open directory handle, recursively delete the contents of the directory plus the directory itself.
- Perform a
renameat
-like operation, ensuring that the resolution of both the old and new paths never escape the directory tree rooted at their respective starts. - Re-open an
fs::File
to produce an independent handle. - Perform a
chmodat
-like operation, ensuring that the resolution of the path never escapes the directory tree rooted atstart
. - Perform a
chmodat
-like operation, ensuring that the resolution of the path never escapes the directory tree rooted atstart
, without following symlinks. - Perform a
utimensat
-like operation, ensuring that the resolution of the path never escapes the directory tree rooted atstart
. This function follows symlinks. - Like
set_times
, but never follows symlinks. - Perform an
fstatat
-like operation, ensuring that the resolution of the path never escapes the directory tree rooted atstart
. - Perform a
symlink_dir
-like operation, ensuring that the resolution of the path never escapes the directory tree rooted atstart
. - Perform a
symlink_file
-like operation, ensuring that the resolution of the path never escapes the directory tree rooted atstart
.