>
> I have tried that by removing the subfolder but its giving an error
> import zipfile
> def zipfolder():
> zf =
> zipfile.ZipFile('/home/praveen/job_files/seq_data/PCGENE_Format.zip')
> fil =
> zf.open('/home/praveen/job_files/seq_data/PCGENE_Format.zip/NPKGTS1')
> print fil
> error:
> There is no item named
> '/home/praveen/job_files/seq_data/PCGENE_Format.zip/NPKGTS1' in the archive"
>
No, I was asking whether there were any subfolders inside the zip file
itself (you can zip an entire directory structure). If so, for files that
are inside subfolders *within* the zip file, I would think you would have
to refer to the entire path, not just the filename.
Anthony