Skip to content

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?.

View source

#file?

Returns true if this Info represents a standard file. Shortcut for type.file?.

View source

abstract #flags : Flags

The special flags this file has set.

View source

abstract #group_id : String

The group ID that the file belongs to.

View source

abstract #modification_time : Time

The last time this file was modified.

View source

abstract #owner_id : String

The user ID that the file belongs to.

View source

abstract #permissions : Permissions

The permissions of the file.

View source

abstract #same_file?(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.

View source

abstract #size : Int64

Size of the file, in bytes.

View source

#symlink?

Returns true if this Info represents a symbolic link to another file. Shortcut for type.symlink?.

View source

abstract #type : Type

The type of the file.

View source