Previous - uZipOpen Section Home - Zip Compression Next - uZipGetItemName


uZipCount ( )

Obtains the number of files stored in the zip archive

Usage:

uZipCount (object me)

Parameters:

NONE

Returns:

(integer) - The number of files stored in the archive

Example:

-- ask end user for a zip file, then extract all file contents on to the same folder
xtRose = xtra("Rosetta").new( )

strPath = xtRose.dlgFile( 2, the moviepath, "untitled.zip", "Zip file (*.zip)|*.zip", "zip" )
If ( STRINGP(strPath) = TRUE ) Then
  xtRose.uZipOpen(strPath)
  nFiles = xtRose.uZipCount( )
  Repeat with i = 1 to nFiles
    strFileName = xtRose.uZipGetItemName( i )
    xtRose.uZipItem( i, the moviepath & strFileName )
  End Repeat
  xtRose.uZipClose( )
End If

Notes:


Previous - uZipOpen Section Home - Zip Compression Next - uZipGetItemName