Class: Zip::StreamableDirectory

Inherits:
Entry
  • Object
show all
Defined in:
lib/zip/streamable_directory.rb

Overview

:nodoc:

Constant Summary

Constants inherited from Entry

Entry::COMPRESSION_LEVEL_FAST_GPFLAG, Entry::COMPRESSION_LEVEL_MAX_GPFLAG, Entry::COMPRESSION_LEVEL_SUPERFAST_GPFLAG, Entry::DEFLATED, Entry::EFS, Entry::STORED

Instance Attribute Summary

Attributes inherited from Entry

#comment, #compressed_size, #compression_level, #crc, #external_file_attributes, #extra, #filepath, #follow_symlinks, #fstype, #gp_flags, #internal_file_attributes, #local_header_offset, #name, #restore_ownership, #restore_permissions, #restore_times, #size, #unix_gid, #unix_perms, #unix_uid

Instance Method Summary collapse

Methods inherited from Entry

#<=>, #==, #atime, #atime=, #calculate_local_header_size, #cdir_header_size, #check_c_dir_entry_comment_size, #check_c_dir_entry_signature, #check_c_dir_entry_static_header_length, #check_name, #clean_up, #comment_size, #compression_method, #compression_method=, #ctime, #ctime=, #encrypted?, #extra_size, #extract, #file_stat, #file_type_is?, #ftype, #gather_fileinfo_from_srcpath, #get_extra_attributes_from_path, #get_input_stream, #get_raw_input_stream, #incomplete?, #local_entry_offset, #name_is_directory?, #name_safe?, #name_size, #next_header_offset, #pack_c_dir_entry, #pack_local_entry, #parent_as_string, read_c_dir_entry, #read_c_dir_entry, #read_extra_field, #read_local_entry, read_local_entry, #set_default_vars_values, #set_extra_attributes_on_path, #set_ftype_from_c_dir_entry, #set_unix_attributes_on_path, #time, #time=, #to_s, #unpack_c_dir_entry, #unpack_local_entry, #verify_local_header_size!, #write_c_dir_entry, #write_local_entry, #write_to_zip_output_stream, #zip64?

Methods included from Dirtyable

#dirty?, included

Constructor Details

#initialize(zipfile, entry, src_path = nil, permission = nil) ⇒ StreamableDirectory

Returns a new instance of StreamableDirectory.



5
6
7
8
9
10
11
# File 'lib/zip/streamable_directory.rb', line 5

def initialize(zipfile, entry, src_path = nil, permission = nil)
  super(zipfile, entry)

  @ftype = :directory
  entry.get_extra_attributes_from_path(src_path) if src_path
  @unix_perms = permission if permission
end