Change times : utime « File Directory « Ruby






Change times

f = "log.messages"          # Filename
atime = mtime = Time.now    # New access and modify times

File.utime(atime, mtime, f) # Change times

 

Related examples in the same category