Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python get zip file size

import zipfile

zp = zipfile.ZipFile("example.zip")

size = sum([zinfo.file_size for zinfo in zp.filelist])
zip_kb = float(size) / 1000  # kB
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #zip #file #size
ADD COMMENT
Topic
Name
8+1 =