AYON Bin Bridge Client  0.1.0
Loading...
Searching...
No Matches
ayon_bin_distro.util.zip Namespace Reference

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)
 

Function Documentation

◆ extract_zip_file()

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.

◆ zip_folder()

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.