Developer   API   Zip

Zip(native)

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

  • add(file [,storeAs]) : Zip
    Adds file to the archive
  • close()
    Close archive
  • this(file) : Zip
    Creates new zip archive with specified name. If same file exists, file is rewritten.