archive#
- archive(folder_path: str | CloudPath | Path, archive_path: str | CloudPath | Path, fmt: str = 'zip') CloudPath | Path [source]#
Archives a folder recursively.
>>> folder_path = 'D:/path/to/folder_to_archive' >>> archive_path = 'D:/path/to/output' >>> archive = archive(folder_path, archive_path, fmt="gztar") 'D:/path/to/output/folder_to_archive.tar.gz'