HELP: Python equivalent of UNIX command "touch"

pekka niiranen pekka.niiranen at wlanmail.com
Wed Mar 2 11:08:09 EST 2005


Roy Smith wrote:
> 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()

Nope, it does not work for directories in Windows



More information about the Python-list mailing list