new Zip(archiveNameOrEntityopt)
Creates a new ZIP Archive
Parameters:
| Name | Type | Attributes | Description | 
|---|---|---|---|
| archiveNameOrEntity | object | <optional> | The name of archive or an NetEntity Creates a zipped entity from all entities passed to the archive | 
- Version
- Experimental feature, might be removed at any time
 
- Since
- 5.0.1
 
Extends
Methods
addEntry(entity)
Add entity to archive
Parameters:
| Name | Type | Description | 
|---|---|---|
| entity | $k.Blob | $k.NetEntity | The new zip-entry | 
- Inherited From
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 | 
- Inherited From
Returns:
The new folder
- Type:
- $k.ZipDirectory
build(archiveName) → {$k.NetEntity}
close the archive and return a zip entity
Parameters:
| Name | Type | Description | 
|---|---|---|
| archiveName | string | The filename of the NetEntity | 
Returns:
The zip-file as NetEntity
- Type:
- $k.NetEntity
directories()
Returns the directories
- Version
- Experimental feature, might be removed at any time
 
- Inherited From
entry(filename) → {object}
Returns the entry at the given filename
Parameters:
| Name | Type | Description | 
|---|---|---|
| filename | string | Filename of the entry | 
- Version
- Experimental feature, might be removed at any time
 
- Overrides
Returns:
The entry
- Type:
- object
filename()
Returns the filename
- Version
- Experimental feature, might be removed at any time
 
- Inherited From
filenames()
Returns the entry filenames
- Version
- Experimental feature, might be removed at any time
 
- Overrides