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

Archive::Zip::Entry::Directory represents a directory entry within a Zip archive.

Methods

directory?   extract   ftype   mode=   zip_path=  

Included Modules

Archive::Zip::Entry

Public Instance methods

Returns true.

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.
: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.
:times:When set to false (the default), last accessed and last modified times will be ignored. Otherwise, they will be restored if possible.

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

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

Inherits the behavior of Archive::Zip::Entry#zip_path= but ensures that there is a trailing slash (/) on the end of the path.

[Validate]