DirectoryInput (autotransform.input.directory)

The implementation for the DirectoryInput.

class autotransform.input.directory.DirectoryInput(*, path: str)

Bases: Input

An Input that lists all files recursively within a provided directory.

path

The path of the directory to fetch all files within.

Type

str

name

The name of the component.

Type

ClassVar[InputName]

get_items() Sequence[FileItem]

Gets a list of files recursively contained within the path.

Returns

The eligible files for transformation.

Return type

Sequence[FileItem]

name: ClassVar[InputName] = 'directory'
path: str