Note
This page is a reference documentation. It only explains the function signature, and not how to use it. Please refer to the user guide for the big picture.
brainprep.wrappers.check_outputs¶
- brainprep.wrappers.check_outputs(item, dryrun=False, verbose=False)[source]¶
Recursively validates output file paths.
- Parameters:
- itemFile | list[File] | tuple[File]
A single file path or a collection of paths to validate.
- dryrunbool
If True, skips file existence checks. Default False.
- verbosebool
If True, prints each path being checked. Default False.
- Raises:
- FileNotFoundError
If dryrun is False and any specified path does not exist.
- ValueError
If the input is neither a File nor a list/tuple of Files.