ZLib_List

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > ZLIB >

ZLib_List

 

Description

 

List files included inside a compressed Zip file.

 

Syntax

 

s = ZLib_List(sZipFile [, OnlyNames])

 

Returns

 

String.

 

Parameters

 

Name

Type

Optional

Meaning

sZipFile

String

No

Full path name of the compressed Zip file

OnlyFileNames

Number

Yes

If %TRUE, only file names (and paths if present) will be returned

 

Remarks

 

If success, this function will return a string organized lines and columns.

Lines are separated by $CRLF, columns are separated by $TAB

 

Columns are the following:

File name (plus path or relative path if present)

Date

Time

Original size

Packed size

 

To parse returned string, use something like the following:

NumberOfFiles = PARSE(ReturnedString, YourStringArray, $CRLF$TAB)

where:

NumberOfFiles will get the number of rows parsed from ReturnedString string

ReturnedString is the string returned from ZLib_List

YourStringArray is a string array that will contain parsed data from ReturnedString. You have to declare this array before.

 

Restrictions

 

See also

 

ZLib_Extract, ZLib_Find,

 

Examples