Message52944
Running on Windows XP against a networked file server with Windows 2003 I have a file which due to some obscure reason it has a negative modification time as returned by Python os functions. When I look at the file in the explorer the modification time column is blank, and when I view the properties of the file there the modification time is set to the 25th of April of 1906 at 2:03:44.
If I try to zip this file the zip creation fails with a Value error when the file's st_mtime value is passed to time.localtime().
I'm attaching a debug session log along with a possible patch to avoid such problems, though maybe the function that returns st_mtime should never return negative values because other library functions expect zero or positive values too.
In the log you will see that it is a custom rastertech\zipfile.py file that is failing. This is just the SVN development version of zipfile along with some modifications since changes like 1739648 seem to be very low priority. The patch is generated against a clean SVN version. |
|
Date |
User |
Action |
Args |
2007-08-23 15:59:24 | admin | link | issue1760357 messages |
2007-08-23 15:59:24 | admin | create | |
|