DuAEF.Zip

Zip lib
Author:
  • Nicolas Dufresneand contributors
License:
  • GPL-3.0
    DuAEF is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    DuAEF is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with DuAEF. If not, see http://www.gnu.org/licenses/.

Members

static processPath

The path to 7za.exe or 7z.exe (windows only, mac uses the internal command 'zip')
Default Value:
  • '7za.exe'

Methods

static compressFolderContent(folder, archiveNameopt, wipeFolderopt) → {File}

Compresses the content of a folder
Parameters:
Name Type Attributes Default Description
folder Folder The folder to zip
archiveName string <optional>
folder.name + ".zip" The archive name
wipeFolder boolean <optional>
false Set to true to remove the original folder as soon as the zip is ready
Returns:
File - The zip file