Methods
addEntry(entity, filenameopt)
Add entity to archive
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
entity | $k. | The new entry | |
filename | string | <optional> | The filename within the archive |
Throws:
If the archive is already closed
addFolder(foldername) → {$k.ZipDirectory}
Add folder to archive
Parameters:
| Name | Type | Description |
|---|---|---|
foldername | string | Name of the subfolder |
Returns:
The new folder
- Type:
- $k.
ZipDirectory
directories() → {Array.<$k.ZipDirectory>}
Returns the directories
- Deprecated
- This function is deprecated and might be removed in future releases
Returns:
- Type:
- Array.<$k.ZipDirectory>
entry(filename) → {$k.NetEntity}
Returns the entry at the given filename
Parameters:
| Name | Type | Description |
|---|---|---|
filename | string | Filename of the entry |
Returns:
The entry
- Type:
- $k.
NetEntity
filename() → {string}
Returns the filename
Returns:
- Type:
- string
filenames() → {Array.<string>}
Returns the entry filenames
Returns:
- Type:
- Array.<string>