Global.helma.Zip.save (dest)
saves the archive by closing the output stream

  • Parameter String:
    path (including the name) to save the zip file to
  • Returns
    Boolean true
Sourcecode in /home/hannes/helma/modules/helma/Zip.js:
278:   this.save = function(dest) {
279:           if (!dest)
280:               throw new Error("no destination for ZipFile given");
281:           // first of all, close the ZipOutputStream
282:           zOutStream.close();
283:           var destFile = new java.io.File(dest);
284:           try {
285:               var outStream = new java.io.FileOutputStream(destFile);
286:               bOutStream.writeTo(outStream);
287:          } finally {
288:              outStream.close();
289:          }
290:          return true;
291:      }