Module path

Source
Expand description

Path Predicates

This module contains predicates specific to the file system.

Structs§

BinaryFilePredicate
Predicate that compares file matches
ExistencePredicate
Predicate that checks if a file is present
FileContentPredicate
Predicate adapter that converts a path predicate to a byte predicate on its content.
FileTypePredicate
Predicate that checks the std::fs::FileType.
StrFilePredicate
Predicate that compares string content of files

Traits§

PredicateFileContentExt
Predicate extension adapting a slice Predicate.

Functions§

eq_file
Creates a new Predicate that ensures complete equality
exists
Creates a new Predicate that ensures the path exists.
is_dir
Creates a new Predicate that ensures the path points to a directory.
is_file
Creates a new Predicate that ensures the path points to a file.
is_symlink
Creates a new Predicate that ensures the path points to a symlink.
missing
Creates a new Predicate that ensures the path doesn’t exist.