Crate xvc_walker

Source
Expand description

Xvc walker traverses directory trees with ignore rules.

Ignore rules are similar to .gitignore and child directories are not traversed if ignored.

[walk_parallel] function is the most useful element in this module. It walks and sends PathMetadata through a channel, also updating the ignore rules and sending them.

Re-exports§

Modules§

  • An absolute path type to ensure that we don’t use relative paths.
  • Error codes and messages for Xvc Walker
  • Ignore patterns for a directory and its child directories.
  • A libnotify based file system notification module that considers ignore rules.
  • Pattern describes a single line in an ignore file and its semantics It is used to match a path with the given pattern
  • This module contains PathSync structure to synchronize operations on paths.
  • Parallel walk implementation
  • Serial directory walker without parallelization See [walk_parallel] for parallel version.

Structs§

  • Glob represents a glob pattern matcher with support for multi-pattern matching.
  • Combine a path and its metadata in a single struct
  • What’s the ignore file name and should we add directories to the result?

Traits§

  • A hashable type.

Functions§

  • Build the ignore rules with the given directory
  • convert a set of rules in content to glob patterns. patterns may come from source. the root directory of all search is in ignore_root.
  • Return all childs of a directory regardless of any ignore rules If there is an error to obtain the metadata, error is added to the element instead
  • Updates the ignore rules from a given directory.

Type Aliases§

Derive Macros§

  • Derive macro generating an impl of the trait Hash.