fastdev.io.archive¶
Module Contents¶
- fastdev.io.archive.extract_archive(filename: str, extract_dir: str, remove_top_dir: bool = False)[source]¶
Extract archive file to a directory.
Currently only supports zip files.
- Parameters:
filename (str) – Local path to the archive file.
extract_dir (str) – Directory to extract the archive file.
remove_top_dir (bool, optional) – Whether to remove the top-level directory in the archive. If True, the top-level common prefix directory will be removed. Defaults to False.