HELP: Python equivalent of UNIX command "touch"

Roy Smith roy at panix.com
Mon Feb 28 11:01:10 EST 2005


pekka niiranen  <pekka.niiranen at wlanmail.com> wrote:
>Does anybody know Python recipe for changing the date
>of the directory or files in W2K to current date and time?
>In UNIX shell command "touch" does it.

You want os.utime()



More information about the Python-list mailing list