Method: SevenZipRuby::UpdateInfo#initialize_file

Defined in:
lib/seven_zip_ruby/update_info.rb

#initialize_file(name, filepath, szw) ⇒ Object



70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# File 'lib/seven_zip_ruby/update_info.rb', line 70

def initialize_file(name, filepath, szw)
  @index_in_archive = nil
  @new_data = true
  @new_properties = true
  @anti = false

  @path = name.to_s
  @dir = false
  filepath = Pathname(filepath).expand_path
  @data = filepath.to_s
  @size = filepath.size
  @attrib = (szw.get_file_attribute(filepath.to_s) || 0x20)
  @posix_attrib = 0x00
  @ctime = filepath.ctime
  @atime = filepath.atime
  @mtime = filepath.mtime
  @user = @group = nil
end