neoZip
Plugin for creating, reading and editing .zip files.
Based on:
https://github.com/Stuk/jszip
https://stuk.github.io/jszip/
Sample App:
https://visualneo.com/tutorials/neozip
neoZipCreate
Category: |
neoZip |
Syntax: |
neoZipCreate "neoZipName"
neoZipName neoZip name (ie: myzip) |
neoZipAddFolder
Purpose: |
Create a new folder |
Category: |
neoZip |
Syntax: |
neoZipAddFolder "neoZipName" "folderName"
neoZipName neoZip name folderName Folder name |
neoZipSave
Purpose: |
Save (download) a .zip file |
Category: |
neoZip |
Syntax: |
neoZipSave "neoZipName" compression "fileName"
neoZipName neoZip name compression Compression fileName File name (ie: myfile.zip) |
neoZipSaveAsBase64
Purpose: |
Save a .zip file into a variable using Base64 encoding |
Category: |
neoZip |
Syntax: |
neoZipSaveAsBase64 "neoZipName" compression resultVar callbackSub
neoZipName neoZip name compression Compression resultVar Variable to store result callbackSub Callback subroutine (optional) |
neoZipSaveAsBinary
Purpose: |
Save a .zip file into a variable in binary format |
Category: |
neoZip |
Syntax: |
neoZipSaveAsBinary "neoZipName" compression resultVar callbackSub
neoZipName neoZip name compression Compression resultVar Variable to store result callbackSub Callback subroutine (optional) |
neoZipAddTextFile
Purpose: |
Add (or update) a text file to the zip file. |
Category: |
neoZip |
Syntax: |
neoZipAddTextFile "neoZipName" "fileName" "fileContent"
neoZipName neoZip name fileName File name (ie: myfile.txt or myfolder/myfile.txt) fileContent Text content |
neoZipAddBase64File
Purpose: |
Add (or update) a base64 enconded file to the zip file. |
Category: |
neoZip |
Syntax: |
neoZipAddBase64File "neoZipName" "fileName" "fileContent"
neoZipName neoZip name fileName File name (ie: myfile.jpg or myfolder/myfile.jpg) fileContent Content |
neoZipAddBinaryFile
Purpose: |
Add (or update) a binary file to the zip file. |
Category: |
neoZip |
Syntax: |
neoZipAddBinaryFile "neoZipName" "fileName" "fileContent"
neoZipName neoZip name fileName File name (ie: myfile.mp3 or myfolder/myfile.mp3) fileContent Content |
neoZipReadTextFile
Purpose: |
Read a text file content |
Category: |
neoZip |
Syntax: |
neoZipReadTextFile "neoZipName" "fileName" contentVar callbackSub
neoZipName neoZip name fileName File name (ie: myfile.txt or myfolder/myfile.txt) contentVar Variable to store the text content callbackSub Callback subroutine (optional) |
neoZipReadBase64File
Purpose: |
Read a file content base64 encoded |
Category: |
neoZip |
Syntax: |
neoZipReadBase64File "neoZipName" "fileName" contentVar callbackSub
neoZipName neoZip name fileName File name (ie: myfile.txt or myfolder/myfile.txt) contentVar Variable to store the text content callbackSub Callback subroutine (optional) |
neoZipReadBinaryFile
Purpose: |
Read a file as binary content |
Category: |
neoZip |
Syntax: |
neoZipReadBinaryFile "neoZipName" "fileName" contentVar callbackSub
neoZipName neoZip name fileName File name (ie: myfile.txt or myfolder/myfile.txt) contentVar Variable to store the text content callbackSub Callback subroutine (optional) |
neoZipRemove
Purpose: |
Remove a file or folder (included its content) |
Category: |
neoZip |
Syntax: |
neoZipRemove "neoZipName" "fileName"
neoZipName neoZip name fileName File or folder name (ie: myfile.txt or myfolder or myfolder/myfile.txt) |
neoZipLoad
Purpose: |
Load an existing .zip file from a URL |
Category: |
neoZip |
Syntax: |
neoZipLoad "neoZipName" "filePath" callbackSub
neoZipName neoZip name filePath File URL (ie: myfolder/myfile.zip) callbackSub Callback subroutine (optional) |
neoZipLoadLocal
Purpose: |
Load an existing .zip file selected by user. |
Category: |
neoZip |
Syntax: |
neoZipLoadLocal "inputFileName" "neoZipName" callbackSub
inputFileName Select a File Input object neoZipName neoZip name callbackSub Callback subroutine (optional) |
neoZipGetFileList
Purpose: |
Get .zip files list into an Array |
Category: |
neoZip |
Syntax: |
neoZipGetFileList "neoZipName" resultVar
neoZipName neoZip name resultVar Variable name to store result |