file time function symmetry

Jeffrey Kunce kuncej at mail.conservation.state.mo.us
Fri Apr 14 12:59:43 EDT 2000


To obtain the time when a file was messed with:
    lastAccessTime = os.path.getatime(path)
    lastModifiedTime = os.path.getmtime(path)

To change the time when a file was messed with:
     os.utime(path,(lastAccessTime,lastModifiedTime))

Is there any reason why these functions
are not more symmetrical?

  --Jeff






More information about the Python-list mailing list