Expand description
Path Predicates
This module contains predicates specific to the file system.
Structs§
- Binary
File Predicate - Predicate that compares file matches
- Existence
Predicate - Predicate that checks if a file is present
- File
Content Predicate - Predicate adapter that converts a
pathpredicate to a byte predicate on its content. - File
Type Predicate - Predicate that checks the
std::fs::FileType. - StrFile
Predicate - Predicate that compares string content of files
Traits§
- Predicate
File Content Ext Predicateextension adapting aslicePredicate.
Functions§
- eq_file
- Creates a new
Predicatethat ensures complete equality - exists
- Creates a new
Predicatethat ensures the path exists. - is_dir
- Creates a new
Predicatethat ensures the path points to a directory. - is_file
- Creates a new
Predicatethat ensures the path points to a file. - is_
symlink - Creates a new
Predicatethat ensures the path points to a symlink. - missing
- Creates a new
Predicatethat ensures the path doesn’t exist.