The Archive namespace

Create and extract archived files and folders.

Function List

InspectZip (filename string)
Returns a list of contained file names without extracting the archive file. (Returns a List of string object.)
UnZip (filename string, destination string)
Extract a zip archive to the specified destination path.
UnZip (filename string, files List of string, destination string)
Extract only the specified files from the zip archive to the destination path.
Zip (filename string, sourcefiles List of string)
Creates a zip archive that contains the specified files and/or directories. If the destination zip file exists, the specified files and/or directories will be added to the existing zip archive.Files and/or directories specified that exist in the archive will be replaced.

Function Details

InspectZip (filename string)
Returns a list of contained file names without extracting the archive file.
Input Parameters
filename(string)
Source zip file.
Return
List of string
The list of archived files.
UnZip (filename string, destination string)
Extract a zip archive to the specified destination path.
Input Parameters
filename(string)
Source zip file.
destination(string)
The extraction destination.
UnZip (filename string, files List of string, destination string)
Extract only the specified files from the zip archive to the destination path.
Input Parameters
filename(string)
Source zip file.
files(List of string)
The list of files to extract.
destination(string)
The extraction destination.
Zip (filename string, sourcefiles List of string)
Creates a zip archive that contains the specified files and/or directories. If the destination zip file exists, the specified files and/or directories will be added to the existing zip archive.Files and/or directories specified that exist in the archive will be replaced.
Input Parameters
filename(string)
Destination zip file.
sourcefiles(List of string)
List of source files and/or directories.