List files in the zip file : File Zip : File PYTHON examples


PYTHON examples » File » File Zip »

 

List files in the zip file


List files in the zip file


import zipfile
zz = zipfile.ZipFile('z.zip')
zz.printdir()
for name in zz.namelist():
    print '%s: %r' % (name, zz.read(name))
zz.close()

           
       



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON examples

 Navioo File
» File Zip