I get DeprecationWarning: struct integer overflow masking is deprecated error in z.write when file arrives to 4GB.
My code:
def compressOutputFile(outputFileName, outputPath=UXConfig.myPath):
os.chdir(outputPath)
z= zipfile.ZipFile(outputFileName+'.zip', 'wb',zipfile.ZIP_DEFLATED,allowZip64=True)
UXUtils.log('Writting file')
z.write(outputFileName)
UXUtils.log('Writting finished')
z.close()
tempFiles.append(outputPath+outputFileName)
The file isn't corrupted because I can open and see the lines.