keep original date and time of unzipped files
danb_83 at yahoo.com
Fri Jul 11 01:33:13 CEST 2003
"Bartolomé Sintes Marco" <BartolomeSintes at ono.com> wrote in message news:<hjfPa.26867$FN3.2232703 at news.ono.com>...
> In this mail,
> Kragen Sitaker explained how to unzip a file in Python
> The unzipped files date and time are not the original ones, but
> when the unzipping is done. Is there a way to keep the
> original files date and time?
You can change a file's date and time with
os.utime(filename, (accessTime, modificationTime))
More information about the Python-list