abstract struct File::Info
inherits Struct
¶
A File::Info contains metadata regarding a file.
It is returned by File.info, File#info and File.info?.
Class methods¶
Methods¶
#directory?
¶
Returns true if this Info represents a directory. Shortcut for
type.directory?.
abstract
#same_file?(other : File::Info) : Bool
¶
(other : File::Info) : Bool
Returns true if this Info and other are of the same file.
On unix, this compares device and inode fields, and will compare equal for hard linked files.
#symlink?
¶
Returns true if this Info represents a symbolic link to another file.
Shortcut for type.symlink?.