dlt.common.storages.normalize_storage
group_worker_files
def group_worker_files(
files: Sequence[str],
no_groups: int,
file_sizes: Optional[Mapping[str, int]] = None) -> List[List[str]]
Groups job files for no_groups workers, each gets a similar size of every file format.
Files of a format are sorted by name and cut into contiguous groups, so the files of a table
stay together. Without file_sizes all files have the same size.
NormalizeStorage Objects
class NormalizeStorage(VersionedStorage)
list_files_to_normalize_sorted
def list_files_to_normalize_sorted() -> Sequence[str]
Gets all data files in extracted packages storage. This method is compatible with current and all past storages