quick equivalent of 'touch' command?

Mike Fletcher mfletch at tpresence.com
Sun Oct 29 00:58:07 EDT 2000


Following seems to work on NT4.0:
	os.utime( 'z:\\temp\\Cocoa1.wrl', (time.time(), time.time()) )

Read docs on utime for the parameters in the tuple. HTH,
Mike

"Mats Wichmann" <mats at laplaza.org> wrote in message
news:39fb6922.26843819 at news.laplaza.org...
...
> it later on the .mbx than on the .toc.  What I'd like to do is change
> only the necessary files, then do the UNIX-equivalent of the "touch"
> command on the matching .toc file. The change I make does not
> invalidate the .toc file, so this is okay to do. Is there an efficient
> way in Python to update the mod time without really changing the
> file's data?
...




More information about the Python-list mailing list