Unzip a Folder

(Sample Code taken from the DroidScript Google-Group)

unzip.js
function unzip(zipfile, extractpath) 
{
    var zip = app.CreateZipUtil();
    zip.Open(zipfile);
    var files = zip.List().split(",");
    files.forEach(function (item) 
    {
        zip.Extract(item, extractpath+"/"+item);
    });
    zip.Close();
}