|
AYON Bin Bridge Client
0.1.0
|
Classes | |
| class | ZipFileLongPaths |
Functions | |
| str | extract_zip_file (progress_item, str zip_file_path, str dest_dir) |
| Union[str, bool] | zip_folder (str folder_path, str output_path) |
| str ayon_bin_distro.util.zip.extract_zip_file | ( | progress_item, | |
| str | zip_file_path, | ||
| str | dest_dir | ||
| ) |
Extract a zip file to a destination directory.
Args:
zip_file_path (str): The path to the zip file.
dest_dir (str): The directory where the zip file should be extracted.
Returns:
str: Path to the extracted content directory.
Note:
On Windows, this function handles paths longer than MAX_PATH (260 chars)
by using the \\?\ long path prefix.
| Union[str, bool] ayon_bin_distro.util.zip.zip_folder | ( | str | folder_path, |
| str | output_path | ||
| ) |
zip a given folder to a given output path
Args:
folder_path: folder to be zipped
output_path: zip output location (needs to end in .zip)
Returns:
Union[str, bool]: Returns False if zip failed. On success the output path is returned.