spdl.source.local_directory.LocalDirectory¶ class LocalDirectory(root: str | PathLike[str], pattern: str)[source]¶ Bases: IterableWithShuffle[Path] Methods shuffle(seed) Apply in-place shuffling __iter__() → Iterator[Path][source]¶ Iterate over the source and yields the source data. shuffle(seed: int) → None[source]¶ Apply in-place shuffling