unzip Method

Top  Previous  Next

Unzips the contents of a ZIP compressed file.

Syntax

file.unzip(folder)

Arguments

folderAn instance of a file object representing a folder to be used as the destination, or null to use the root as the destination.

Return Value

The number of files created if successful; a negative number representing an error code if failure.

Remarks

A ZIP file may contain any number of compressed files and subfolders. This method uncompresses them all at the specified location.

Examples

 

See Also