Setting file attributes on file creation.

Chris Withers chrisw at nipltd.com
Tue Mar 20 04:07:02 EST 2001


Hi,

I've got some code which unpacks a ZIP file created using the zipfile module:

      f = open(dstpath,'wb')
      f.write(zipfile.read(zipname))
      f.close()

Is there any way I can set the date and time of the file as I unpack it? 
Something like shutil.copy2, if you see what I mean.

Thanks for any help :-)

Chris




More information about the Python-list mailing list