add --fix-xml
압축파일 내의 경로를 제거하도록 util.py 수정
This commit is contained in:
@@ -232,10 +232,9 @@ def ExtractZIP(zip_file: str, extract_to: str):
|
||||
|
||||
#
|
||||
def CreateZIP(output_zip: str, files: list[str]) -> bool:
|
||||
with zipfile.ZipFile(output_zip, 'w') as zf:
|
||||
with zipfile.ZipFile(output_zip, 'w', compression=zipfile.ZIP_DEFLATED) as zf:
|
||||
for file in files:
|
||||
pathTemp = os.path.join('root', os.path.basename(file))
|
||||
zf.write(file, pathTemp)
|
||||
zf.write(file, os.path.basename(file))
|
||||
|
||||
bRet = False
|
||||
if os.path.exists(output_zip):
|
||||
|
||||
Reference in New Issue
Block a user