Error getting tags :
error 404Error getting tags :
error 404 revZipDescribeItem | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
revZipDescribeItem
Basics
Expander triangle
Type
Function
Syntax

revZipDescribeItem(archivePath, itemName)

Introduced
2.7.3
Environment
Desktop, Web and Server
Platform Support
Mac OS X,Windows,Linux
Security
Disk,Network
Summary
Returns information about an item in a zip archive.
Examples

put revZipDescribeItem(tArchive, "myZippedItem") into tDetails
put item 6 of revZipDescribeItem(tArchive, "myZippedItem") into tCompressionMethod

Additional Comments
Expander triangle

Use the revZipDescribeItem function to obtain detailed information about a given item in an open zip archive. The archive must first have been opened using the revZipOpenArchive command.

Parameters

The archivePath is the absolute path to the archive containing the item to describe.

The itemName is the name of the item to describe in the archive.

Value

This function returns a comma delimited list of details in the form:

index, crc, size, mtime, compressed_size, compression_method

Where:

index is the unique number of the item in the archive

crc is the checksum of the item a 32-bit integer

size is the size in bytes of the item

mtime is the last modified time, in seconds since the Unix Epoch (0:00 on the 1st Jan 1970)

compressed_size is the size of the item after compression

compression_method is the type of compression used, and is one of:

none

shrink

reduce_1

reduce_2

reduce_3

reduce_4

implode

deflate

deflate64

pkware_implode

The result will be set to the same as the return value of the function.

NOTE: While the Zip library can read most archives, extracting files from archives is only supported for files compressed with the method deflate.

User Comments
Expander triangle