FileValidator#
- class maize.utilities.validation.FileValidator(expect: Path | list[Path], zero_byte_check: bool = True)[source]#
Bases:
Validator
Check if an external command has succeeded by searching for one or more generated files.
- Parameters:
expect – If all files specified here are found, the command was successful
zero_byte_check – Whether to check if the generated file is empty
Methods
__init__
(expect[, zero_byte_check])