zipfile: how to find out if a zipinfo object is a directory or file

Chris Withers chrisw at nipltd.com
Wed Mar 14 06:12:24 EST 2001


Stephane wrote:
> 
> Hi,
> 
> does somebody know how to find out in a zipinfo object represents a file
> or directory.

I think zipinfo objects _always_ represent files. The name in the zipinfo object
includes that path where that file should be expanded to.

cheers,

Chris




More information about the Python-list mailing list