Method: Maid::Tools#modified_at

Defined in:
lib/maid/tools.rb

#modified_at(path) ⇒ Object

Get the modification time of a file.

In Unix speak, mtime.

Examples

modified_at('foo.zip') # => Sat Apr 09 10:50:01 -0400 2011


539
540
541
# File 'lib/maid/tools.rb', line 539

def modified_at(path)
  File.mtime(expand(path))
end