zip_extract()

Read(127) Label: zip, file extraction,

Description:
 
 Extract one or more files from a zip file.

Syntax:
   zip_extract(zip, files, path)

Note:

The function extract one or more specified files from a zip file onto a path.

Parameters:

zip

A zip file object

files  

A compressed file or a FileObject; can be a sequence

Return value:
A Boolean value

Example:

 

A

 

1

=zip_open("D:/z2.zip")

Open a zip file

2

=zip_extract(A1,"*.txt")

Extract txt files into D:/ directory holding the zip file

3

=zip_extract(A1,"*.csv","D:/csvfile")

Extract csv files into D:/csvfile directory

4

>zip_close(A1)

Close a zip file