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
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.
#---
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
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
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
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