Module predicates::path
source · Expand description
Path Predicates
This module contains predicates specific to the file system.
Structs
- Predicate that compares file matches
- Predicate that checks if a file is present
- Predicate adapter that converts a
pathpredicate to a byte predicate on its content. - Predicate that checks the
std::fs::FileType. - Predicate that compares string content of files
Traits
Predicateextension adapting aslicePredicate.
Functions
- Creates a new
Predicatethat ensures complete equality - Creates a new
Predicatethat ensures the path exists. - Creates a new
Predicatethat ensures the path points to a directory. - Creates a new
Predicatethat ensures the path points to a file. - Creates a new
Predicatethat ensures the path points to a symlink. - Creates a new
Predicatethat ensures the path doesn’t exist.