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
path
predicate 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 Predicate
extension adapting aslice
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.