From: Phlip Date: 2002-12-18T14:08:48+09:00 Subject: How to 'touch' a file to a time other than now? Rubies: The only post I can find regarding 'touch' sez this: fn = '/usr/aDirectory/aFile' # oops, we don't have File.touch File.open(fn, "w").close unless File.exist?(fn) As it's by Matz, I'l take it as authoritative we got no 'File.touch'. I don't want to do the file open close trick. I need to set the time back to a while ago, and changing the platform time is out of the question; I'm running on a busy server. I'l shell to the GNU 'touch', but if folks don't have it they are screwed. Are there more primitive things I can do to get in 'touch'? -- Phlip http://www.greencheese.org/SonseOne -- It's a small Web, after all... --