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§
pub use pattern::MatchResult;pub use pattern::PathKind;pub use pattern::Pattern;pub use pattern::PatternEffect;pub use pattern::PatternRelativity;pub use pattern::Source;pub use walk_parallel::walk_parallel;pub use walk_serial::walk_serial;pub use abspath::AbsolutePath;pub use error::Error;pub use error::Result;pub use ignore_rules::IgnoreRules;pub use notify::make_watcher;pub use sync::PathSync;pub use sync::PathSyncSingleton;pub use notify::PathEvent;
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§
Globrepresents 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
contentto glob patterns. patterns may come fromsource. the root directory of all search is inignore_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§
- The recommended
Watcherimplementation for the current platform
Derive Macros§
- Derive macro generating an impl of the trait
Hash.