Re: HELP: Python equivalent of UNIX command "touch"

2005-03-03 Thread Tim G
Since no-one's suggested this yet, I highly recommend UnxUtils: http://unxutils.sourceforge.net/ which includes a touch.exe. Obviously, this doesn't answer your call for a Python version, but if you're happy with touch under Unix, maybe this will work for you. TJG -- http://mail.python.org/mailm

Re: HELP: Python equivalent of UNIX command "touch"

2005-03-02 Thread Wolfgang Strobl
pekka niiranen <[EMAIL PROTECTED]>: >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. See below. The key is using the FILE_FLAG_BACKUP_SEMANTICS flag. #---

Re: HELP: Python equivalent of UNIX command "touch"

2005-03-02 Thread Roy Smith
In article <[EMAIL PROTECTED]>, pekka niiranen <[EMAIL PROTECTED]> wrote: >Roy Smith wrote: >> pekka niiranen <[EMAIL PROTECTED]> 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

Re: HELP: Python equivalent of UNIX command "touch"

2005-03-02 Thread pekka niiranen
Roy Smith wrote: pekka niiranen <[EMAIL PROTECTED]> 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 -- http://mail.p

Re: HELP: Python equivalent of UNIX command "touch"

2005-02-28 Thread Roy Smith
pekka niiranen <[EMAIL PROTECTED]> 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() -- http://mail.python.org/mailman/listinfo/python-list

HELP: Python equivalent of UNIX command "touch"

2005-02-28 Thread pekka niiranen
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. -pekka- -- http://mail.python.org/mailman/listinfo/python-list