A File::Info
contains metadata regarding a file. It is returned by File.info
, File#info
and File.info?
.
Returns true if this Info
represents a directory.
Returns true if this Info
represents a standard file.
The special flags this file has set.
The group ID that the file belongs to.
DEPRECATED Use File#group_id instead
The group ID that the file belongs to.
The last time this file was modified.
The user ID that the file belongs to.
DEPRECATED Use File#owner_id instead
The user ID that the file belongs to.
The permissions of the file.
Returns true if this Info
and other are of the same file.
Size of the file, in bytes.
Returns true if this Info
represents a symbolic link to another file.
The type of the file.
Struct
Value
Object
Object
Returns true if this Info
represents a directory. Shortcut for type.directory?
.
The group ID that the file belongs to.
DEPRECATED Use File#group_id instead
The permissions of the file.
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.
© 2012–2020 Manas Technology Solutions.
Licensed under the Apache License, Version 2.0.
https://crystal-lang.org/api/0.35.1/File/Info.html