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.