struct RPM::File
- RPM::File
- Struct
- Value
- Object
Overview
Represents information of a file or a directory stored in RPM db or RPM package
Defined in:
rpm/file.crConstructors
Instance Method Summary
-
#attr : FileAttrs
RPM-specific File attributes
-
#attr=(attr : FileAttrs)
RPM-specific File attributes
-
#digest : String
(Cryptographic) Digest of the file
-
#digest=(digest : String)
(Cryptographic) Digest of the file
-
#flags : ::File::Flags
Returns extra mode bit flags which is set for the path
-
#group : String
Group's name
-
#group=(group : String)
Group's name
-
#link_to : String
Link destination of the symbolic link
-
#link_to=(link_to : String)
Link destination of the symbolic link
-
#mode : UInt16
UNIX mode value
-
#mode=(mode : UInt16)
UNIX mode value
-
#modification_time : Time
Returns modification time.
-
#mtime : Time
Modification time of a file
-
#mtime=(mtime : Time)
Modification time of a file
-
#owner : String
Owner's name
-
#owner=(owner : String)
Owner's name
-
#path : String
Fullpath to the file or the directory
-
#path=(path : String)
Fullpath to the file or the directory
-
#permissions : ::File::Permissions
Returns permissions of the path
-
#rdev : UInt16
Device ID for special files
-
#rdev=(rdev : UInt16)
Device ID for special files
-
#size : UInt32
Bytesize of a file
-
#size=(size : UInt32)
Bytesize of a file
-
#state : FileState
Current state of the file (missing, replaced, ...)
-
#state=(state : FileState)
Current state of the file (missing, replaced, ...)
-
#type : ::File::Type
Returns type of the path
Constructor Detail
Instance Method Detail
(Cryptographic) Digest of the file
For directory, digest will be filled with 0.
(Cryptographic) Digest of the file
For directory, digest will be filled with 0.
Link destination of the symbolic link
If the file is not a symbolic link, #link_to will be an empty string.
Link destination of the symbolic link
If the file is not a symbolic link, #link_to will be an empty string.
Returns modification time.
Provided for interoperability with Crystal's File::Info,
this method just return #mtime.