GetFilesList

Description

Gets the list of files (and folders) in the compressed package.

Applies to

ExtractorObject objects

Syntax

objectname.GetFilesList ( string source, ref string list[] )

Argument

Description

objectname

The name of the ExtractorObject object.

source

The full path of the compressed package.

Packages compressed by the LINUX commands are unsupported.

list[]

The list of files (and folders) in the compressed package.


Return value

Integer. If any argument's value is null, the method returns null.

The return values are:

  • 1 -- Success.

  • -1 -- A general error occurred.

  • -3 -- The operation is not supported for the source file format.

  • -5 -- A task thread is currently running.

  • -6 -- You must enter a password.

  • -7 -- The password is incorrect.

  • -9 -- Failed to read the compressed file.

  • -10 -- Unrecognized format or the encrypted file name option is used for the compressed document.

  • -12 -- The compressed file does not exist.

Examples

ExtractorObject lnv_extractor
string ls_source, ls_password, ls_fileslist[]
long ll_return

lnv_extractor = create ExtractorObject
ls_source = "E:\test.rar"

//Suppose the package requires a password
lnv_extractor.Password = ls_password
ll_return = lnv_extractor.GetFilesList (ls_source, ls_fileslist[])

See also

Cancel

Extract

GetFilesCount