LitDev Extension API
LDZip

Zip file compression utilities.
Remove
![]() |
UnZip
![]() |
Zip
![]() |
ZipList
![]() |
Remove(zipFile,files)

Remove a file (or directory with all sub files) from an existing zip archive.
zipFile The zip archive to remove a file from.
files An array of files to remove from the zip archive.
A single file or directory may also be deleted.
Any directories will be recursively removed from the zip.
returns An error message or "".
UnZip(zipFile,directory)

Uncompress a zip archive.
zipFile The zip archive to uncompress.
directory A directory to uncompress the files to (existing files will be overwritten).
returns An error message or "".
Zip(zipFile,files)

Compress files to a zip archive.
zipFile The zip archive file to create.
files An array of files to append to the zip archive.
A single file or directory may also be set.
Any directories will be recursively added to the zip.
Any white space in files or directories will be replaced with "_".
returns An error message or "".
ZipList(zipFile)

List the files in a zip archive.
zipFile The zip archive.
returns An array of file names in the zip or an error message.