class Tarball::Entity
- Tarball::Entity
- Reference
- Object
Overview
File system objects(regular files, directries or links) in the tar archive.
Tarball::Entity object must contain an entity body entry with one of following entry types:
Tarball::Entry::Type::FILE(Regular file)Tarball::Entry::Type::HARDLINK(Hardlink)Tarball::Entry::Type::SYMLINK(Symlink)Tarball::Entry::Type::DIRECTORY(Directory)
It can contain one each of Tarball::Entry::Type::LONGNAME (GNUTAR long name) entry, a Tarball::Entry::Type::LONGNAME (GNUTAR long linkname) entry, Tarball::Entry::Type::PAXDATA (PAX header) entry.
Included Modules
- Comparable(Tarball::Entity)
Defined in:
tarball/entity.crInstance Method Summary
- #<=>(other : self)
-
#add_entry(entry : Entry)
Adds tar file entry to this entity.
-
#directory?
Returns
truewhen self is a directory. -
#file?
Returns
truewhen self is a regular file. -
#gid
Returns owner group id of this entity.
-
#hardlink?
Returns
truewhen self is a hardlink. -
#has_body?
Returns
truewhen entity body has been set. -
#has_long_linkname?
Returns
truewhen entity body has been set. -
#has_long_name?
Returns
truewhen entity body has been set. -
#linkname
Returns file or directory name that this entity links to.
-
#mtime
Returns last modified timestamp of this entity.
-
#name
Returns file or directory name of this entity.
-
#symlink?
Returns
truewhen self is a symlink. -
#uid
Returns owner user id of this entity.
-
#write_content(io : IO)
Writes content data to IO.
Instance Method Detail
Returns file or directory name that this entity links to.
#linkname is only used when the entity body is Entry::Type::HARDLINK or Entry::Type::SYMLINK.