A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://en.wikibooks.org/wiki/Ruby_Programming/Reference/Objects/IO/File/File::Stat below:

Ruby Programming/Reference/Objects/IO/File/File::Stat - Wikibooks, open books for an open world

File::Stat[edit | edit source]

A File::Stat object is one that contains a file's status information.

Example:

stat = File.stat('/etc') # a File::Stat object
if stat.directory?
  puts '/etc is a directory last modified at ' + stat.mtime.to_s
end

You can also get a stat object for open file descriptors.

a = File.open('some file')
a.stat # File::Stat object

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4