gluonts.nursery.tsbench.src.tsbench.utils.filesystem module#
- gluonts.nursery.tsbench.src.tsbench.utils.filesystem.compress_directory(directory: pathlib.Path, target: pathlib.Path, include: Optional[Set[str]] = None) None [source]#
Compresses the provided directory into a single .tar.gz file.
- Parameters
directory – The directory to compress.
target – The .tar.gz file where the compressed archive should be written.
include – The filenames to include. If not provided, all files are included.