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 and a Tarball::Entry::Type::LONGNAME (GNUTAR long linkname) 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.
-
#content(io : IO)
Writes content data of the entity to IO.
-
#directory?
Returns
true
when self is a directory. -
#file?
Returns
true
when self is a regular file. -
#hardlink?
Returns
true
when self is a hardlink. -
#has_body?
Returns
true
when entity body has been set. -
#has_long_linkname?
Returns
true
when entity body has been set. -
#has_long_name?
Returns
true
when entity body has been set. -
#linkname
Returns file or directory name that this entity links to.
-
#name
Returns file or directory name of this entity.
-
#symlink?
Returns
true
when self is a symlink. -
#write_content(io : IO)
Writes content data to IO.