Zip Class
This class allows to create zip archive.
Example:
var archive = new Zip("dat://archive.zip");
if (!archive)
return;
// add new file into archive
archive.add("dat://file.txt");
// close archive and relelase sources
archive.close();
Methods
this
(
Zip
file
Creates new zip archive with specified name. If same file exists, file is rewritten.
Parameters:
-
file
StringName of archive to create.
Returns:
Zip: New instance of Zip class, which manages operations with archive
add
(
chainable
file
[storeAs]
Adds file to the archive
close
()
Close archive.