espnet3.utils.download_utils.extract_targz
Less than 1 minute
espnet3.utils.download_utils.extract_targz
espnet3.utils.download_utils.extract_targz(archive_path: Path, dst_dir: Path, logger: Logger | None = None) → None
Extract a .tar.gz archive into a destination directory.
- Parameters:
- archive_path (Path) – Path to the
.tar.gzarchive. - dst_dir (Path) – Directory to extract files into.
- logger (logging.Logger | None) – Logger to emit progress messages.
- archive_path (Path) – Path to the
- Raises:tarfile.TarError – If the archive is invalid or extraction fails.
