Crate cap_fs_ext

source ·
Expand description

Extension traits for Dir

Structs§

  • Instances of this AmbientAuthority type serve to indicate that the ambient_authority function 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_write function for File types.
  • 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::OpenOptions which adds follow, a function for controlling whether a symlink in the last component of a path is followed.
  • Extension trait for cap_primitives::fs::OpenOptions which adds maybe_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::OpenOptions which adds sync, dsync, rsync, and nonblock functions for controlling various I/O modes for the opened file.
  • Re-export these to allow them to be used with Reuse. Unix-specific extensions for MetadataExt.
  • A trait for the reopen function.

Functions§

  • Return an AmbientAuthority value, which allows use of functions that include an AmbientAuthority argument.