f = "log.messages" # Filenameatime = mtime = Time.now # New access and modify timesFile.utime(atime, mtime, f) # Change times