Crate gix_fs

source ·
Expand description

A crate with file-system specific utilities.

Modules§

Structs§

  • Common knowledge about the worktree that is needed across most interactions with the work tree
  • A structure holding enough information to reload a value if its on-disk representation changes as determined by its modified time.
  • Use this type for fields in structs that are to store the FileSnapshot, typically behind an OwnShared.
  • A stack of path components with the delegation of side-effects as the currently set path changes, component by component.

Functions§

  • Like std::env::current_dir(), but it will precompose_unicode if that value is true, if the current directory is valid unicode and if there are decomposed unicode codepoints.
  • Returns whether a a file has the executable permission set.
  • List all entries in path, similar to std::fs::read_dir(), and assure all available information adheres to the value of precompose_unicode.

Type Aliases§

  • A snapshot of a resource which is up-to-date in the moment it is retrieved.