Zip methods. This lib needs the 7zip command line tool
7za.exe
to be located next to the script on Windows.Members
string
# static processPath
The path to 7za.exe or 7z.exe (windows only, mac uses the internal command 'zip')
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 |
The zip file
File