Peter Hansen wrote:
> from path import path
> path('myfile').touch()
import os
os.utime('myfile', None)
is a bit shorter, of course.
>>> help(os.utime)
Help on built-in function utime:
utime(...)
utime(path, (atime, utime))
utime(path, None)
Set the access and modified time of the file to the given values. If
the
second form is used, set the access and modified times to the current
time.
</F>
--
http://mail.python.org/mailman/listinfo/python-list
