Crate cap_fs_ext
source ·Expand description
Extension traits for Dir
Structs§
- Instances of this
AmbientAuthoritytype serve to indicate that theambient_authorityfunction has been called, indicating that the user has explicitly opted into using ambient authority. - Re-export these to allow them to be used with
Reuse. Metadata information about a file. - Re-export these to allow them to be used with
Reuse. Options and flags which can be used to configure how a file is opened.
Enums§
- Access modes for use with [
DirExt::access]. - Re-export these to allow them to be used with
Reuse. Should symlinks be followed in the last component of a path? - A value for specifying a time.
Traits§
- Extension trait for
DirEntry. - Extension trait for
Dir. - Extension trait for
FileType. - A trait for the
is_file_read_writefunction forFiletypes. - Extension trait for
Metadata. - Re-export these to allow them to be used with
Reuse. Unix-specific extensions to [fs::OpenOptions]. - Extension trait for
cap_primitives::fs::OpenOptionswhich addsfollow, a function for controlling whether a symlink in the last component of a path is followed. - Extension trait for
cap_primitives::fs::OpenOptionswhich addsmaybe_dir, a function for controlling whether an open should attempt to succeed on a directory. On Posix-ish platforms, opening a directory always succeeds, but on Windows, opening a directory needs this option. - Extension trait for
cap_primitives::fs::OpenOptionswhich addssync,dsync,rsync, andnonblockfunctions for controlling various I/O modes for the opened file. - Re-export these to allow them to be used with
Reuse. Unix-specific extensions forMetadataExt. - A trait for the
reopenfunction.
Functions§
- Return an
AmbientAuthorityvalue, which allows use of functions that include anAmbientAuthorityargument.