tacker.common.csar_utils module¶
- class tacker.common.csar_utils.PreserveZipFilePermissions(file, mode='r', compression=0, allowZip64=True, compresslevel=None, *, strict_timestamps=True)¶
Bases:
ZipFile
Patched _extract_member function of zipFile.
zipfile.ZipFile.extractall function internally calls _extract_member function. Here _extract_member function is patched to retain the file permissions using member.external_attr >> 16.
Note: First 16 bits of external_attr store permission details.
- tacker.common.csar_utils.delete_csar_data(package_uuid)¶
- tacker.common.csar_utils.extract_csar_zip_file(file_path, extract_path)¶
- tacker.common.csar_utils.load_csar_data(context, package_uuid, zip_path)¶