File::Stat

Objects of class File::Stat encapsulate common status
information for File objects. The information is recorded at
the moment the File::Stat object is created; changes made to
the file after that point will not be reflected. File::Stat
objects are returned by IO#stat, File::stat,
File#lstat, and File::lstat. Many of these
methods return platform-specific values, and not all values are meaningful
on all systems. See also Kernel#test.

Public Class Methods

File::Stat.new(file_name) → statclick to toggle source

Create a File::Stat object for the given file name
(raising an exception if the file doesn’t exist).

Returns true if stat is a symbolic link,
false if it isn’t or if the operating system doesn’t support
this feature. As File::stat automatically follows symbolic
links, symlink? will always be false for an
object returned by File::stat.