D M
unread,May 9, 2012, 8:22:14 PM5/9/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to aff-d...@googlegroups.com
I ran into a problem (Python 2.6 on Ubuntu) where running an idifference against to XML files from iwalk flagged nearly every file as having a changed time (ctime, mtime, atime, crtime) and proceeded to indicate changed xxxxx -> xxxxx where the times were identical.
Speculating that perhaps the times had become floating point and the checks like:
if ofi.atime() != fi.atime():
were failing due to floating point roundoff, I changed all the checks (about 8 I think) to be the same form as the print:
if ptime(ofi.atime()) != ptime(fi.atime()):
etc.
This resolved the problem, but I'm still not sure why it was occurring in the first place.