Zip.GetContents

table Zip.GetContents (

string ZipFile,

boolean IncludeFolderNames = true )

Description

Returns the list of files within a given Zip file.

Parameters

ZipFile

(string) The full path and file name of the Zip archive file.

IncludeFolderNames

(boolean) Whether to include any folders in the list:

VALUE

DESCRIPTION

true

Any internal folders will be included in the list as separate entries. (Default)

false

Any internal folders will be omitted from the list. (The file paths will still have folder names in them, however the folders will not be included as separate entries.)

Returns

(table) A table containing a list of the contents of the Zip file. If the Zip file is empty or an error occurs, nil is returned. You can use Application.GetLastError to determine whether this action failed, and why.

ResultVariable

When adding an action with the script editor, you can use this field to specify a variable that the return value will be stored in.

See also: Related Actions