Ruby/File Directory/utime

Материал из Wiki.crossplatform.ru

Перейти к: навигация, поиск

Change times

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