File Filters (autotransform.filter.file)

The implementation for file filters.

class autotransform.filter.file.FileExistsFilter(*, inverted: bool = False, check_target_path: bool = False)

Bases: Filter

A Filter which checks whether a File associated with the FileItem exists.

check_target_path

Check the target_path, rather than the key of the FileItem. Defaults to False.

Type:

bool, optional

name

The name of the component.

Type:

ClassVar[FilterName]

check_target_path: bool
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

name: ClassVar[FilterName] = 'file_exists'