Touch a File

2010-02-27

Here’s how to touch a file using Ruby, easy as 1-2-3:

File.utime(access_time, mod_time, filename)