title: “ZipObject API” layout: default section: api

This represents an entry in the zip file. If the entry comes from an existing archive previously loaded, the content will be automatically decompressed/converted first.

Attributes

attribute nametypedescription
namestringthe absolute path of the file
dirbooleantrue if this is a directory
datedatethe last modification date
commentstringthe comment for this file
unixPermissions16 bits numberThe UNIX permissions of the file, if any.
dosPermissions6 bits numberThe DOS permissions of the file, if any.
optionsobjectthe options of the file. The available options are :
options.compressioncompressionsee file(name, data [,options])

Example:

{ name: 'docs/',
  dir: true,
  date: 2016-12-25T08:09:27.153Z,
  comment: null,
  unixPermissions: 16877,
  dosPermissions: null,
  options: {
    compression: 'STORE',
    compressionOptions: null
  }
}
{ name: 'docs/list.txt',
  dir: false,
  date: 2016-12-25T08:09:27.152Z,
  comment: null,
  unixPermissions: 33206,
  dosPermissions: null,
  options: {
    compression: 'DEFLATE',
    compressionOptions: null
  }
}