new ZipContainer()
Represents an archive and its directories
Methods
addEntry(entity)
Add entity to archive
Parameters:
Name | Type | Description |
---|---|---|
entity | $k.Blob | $k.NetEntity | The new zip-entry |
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()
Returns the directories
- Version
- Experimental feature, might be removed at any time
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
Returns:
The entry
- Type:
- object
filename()
Returns the filename
- Version
- Experimental feature, might be removed at any time
filenames()
Returns the entry filenames
- Version
- Experimental feature, might be removed at any time