Hi,
How do you change the mtime (and ctime and atime, if possible) of
a file in Ruby? I'll probably be running this on Solaris, IRIX,
and Linux.
Thank you,
Richard Ryan
Hi,
How do you change the mtime (and ctime and atime, if possible) of
a file in Ruby? I'll probably be running this on Solaris, IRIX,
and Linux.
Thank you,
Richard Ryan
See File.utime.
Best regards,
On Sat, Jul 31, 2004 at 11:41:41AM +0900, Richard A. Ryan wrote:
Hi,
How do you change the mtime (and ctime and atime, if possible) of
a file in Ruby? I'll probably be running this on Solaris, IRIX,
and Linux.
--
Zane Dodson
Richard A. Ryan wrote:
Hi,
How do you change the mtime (and ctime and atime, if possible) of
a file in Ruby? I'll probably be running this on Solaris, IRIX,
and Linux.
------------------------------------------------------------ File::utime
File.utime(atime, mtime, file_name,...) => integer
------------------------------------------------------------------------
Sets the access and modification times of each named file to the
first two arguments. Returns the number of file names in the
argument list.
Don't know about ctime, though.
:daz