Libraries
Archive base Source Code
 previous   up   next 

Types
archiveRegisterType
Hash map that contains all paths in an archive as keys of the hash map.

archiveRegisterType

const type: archiveRegisterType

Hash map that contains all paths in an archive as keys of the hash map. The ar, cpio, rpm, tar and zip libraries use this type to maintain the paths of the files in the archive. Some archive libraries store additional information in the value of the hash map. This additional information is not used by readDir.


Function Summary
array string
readDir (in archiveRegisterType: register, in string: dirPath)
Determine the file names in a directory inside an archive.

Function Detail

readDir

const func array string: readDir (in archiveRegisterType: register, in string: dirPath)

Determine the file names in a directory inside an archive. The ar, cpio, rpm, tar and zip libraries use this function. The archive libraries maintain the files in the archive with the hash map register. Note that the function returns only the file names. Additional information must be obtained with other calls.

Parameters:
register - Hash map that contains all paths in the archive as keys of the hash map.
dirPath - Path of a directory in the archive.
Returns:
an array with the file names.
Raises:
RANGE_ERROR - dirPath does not use the standard path representation.
FILE_ERROR - dirPath is not present in the register.


 previous   up   next