Method: Zip::ZipFileSystem::ZipFsFile#chmod

Defined in:
lib/zip/zipfilesystem.rb

#chmod(modeInt, *filenames) ⇒ Object



219
220
221
222
223
224
225
226
# File 'lib/zip/zipfilesystem.rb', line 219

def chmod (modeInt, *filenames)
  filenames.each { |fileName|
    e = get_entry(fileName)
    e.fstype = 3 # force convertion filesystem type to unix
    e.externalFileAttributes = modeInt << 16
  }
  filenames.size
end