Class Archive::Zip::Entry::Symlink
In: lib/archive/zip/entry.rb
Parent: Object

Archive::Zip::Entry::Symlink represents a symlink entry withing a Zip archive.

Methods

Included Modules

Archive::Zip::Entry

Public Instance methods

Extracts this entry.

options is a Hash optionally containing the following:

:file_path:Specifies the path to which this entry will be extracted. Defaults to the zip path of this entry.
:permissions:When set to false (the default), POSIX mode/permission bits will be ignored. Otherwise, they will be restored if possible. Not supported on all platforms.
:ownerships:When set to false (the default), user and group ownerships will be ignored. On most systems, only a superuser is able to change ownerships, so setting this option to true as a regular user may have no effect. Not supported on all platforms.

Raises Archive::Zip::EntryError if the link_target attribute is not specified.

Returns the file type of this entry as the symbol :symlink.

Returns the link target for this entry.

Raises Archive::Zip::EntryError if decoding the link target from an archive is required but fails.

Sets the link target for this entry. As a side effect, the raw_data attribute is set to nil.

Overridden in order to ensure that the proper mode bits are set for a symlink.

Returns true.

[Validate]