Lasso Soft Inc. > Home

[ zip ]

Type

When instantiated the [zip] type creates a zip archive object. Requires a string parameter as the filepath to the zip archive. An optional second octal integer parameter denotes a flag to use that represents an action to be performed on the zip archive. The following actions are performed when the sum of the octal values is passed as the optional parameter. For example, if 3 were the parameter, then a zip file would be created unless the archive already existed. if omitted, the default flag value is 0.

ZIP_CREATE
Create the archive if it does not exist. Octal value = 1
ZIP_EXCL
Error if archive already exists. Octal value = 2
ZIP_CHECKCONS
Perform additional consistency checks on the archive, and error if they fail. Octal value = 4
  • Syntax
  • Methods
  • Traits
zip('Filepath to Zipfile')
zip('Filepath to Zipfile', Integer flag)
zip('Filepath to Zipfile', Defined Constant)
Has methods:
Examples
  • Beginner

To instantiate a zip object:

Use the [zip] type. See this type's methods for additional usage examples.

Code

local(z = zip('/path/to/zipfile.zip'))

Result

A zip object is instantiated.

Recent Comments

No Comments found

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2014 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft