dlt._workspace.deployment.file_selector
BaseFileSelector Objects
class BaseFileSelector(Iterable[Tuple[Path, Path]])
Base class for file selectors. For every file yields 2 paths: absolute path in the filesystem and relative path of the file in the resulting tarball
WorkspaceFileSelector Objects
class WorkspaceFileSelector(BaseFileSelector)
Iterates files in workspace respecting ignore patterns and excluding workspace internals.
Uses gitignore-style patterns from a configurable ignore file (default .gitignore). Additional patterns can be provided as relative paths from workspace root. Settings directory is always excluded.
__iter__
def __iter__() -> Iterator[Tuple[Path, Path]]
Yield paths of files eligible for deployment
ConfigurationFileSelector Objects
class ConfigurationFileSelector(BaseFileSelector)
Iterates config and secrets files in workspace
__iter__
def __iter__() -> Iterator[Tuple[Path, Path]]
Yield paths of config and secrets paths