os.path.setmtime ?
Richard Wesley
hawkfish at trustedmedianetworks.com
Mon Oct 13 14:13:01 EDT 2003
I am trying to set the mod date on a file (Linux) as part of a unit test
run. I can just wait one second, but that slows the test down. A
better solution would be to tweak the mod date on a file, but os.path
does not seem to have setmtime.
Is there any simple way to do this?
TIA,
--
- rmgw
<http://www.electricfish.com/>
----------------------------------------------------------------------------
Richard Wesley Electric Fish, Inc.
"Violence is the last refuge of the incompetent."
- Isaac Azimov, _Foundation_
More information about the Python-list
mailing list