Function __global->tar_get_directory

Definitions

sources/tar.php

  • Return the root directory from the specified TAR file. Note that there are folders in here, and they will end '/'.
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: array

Parameters

Name Type Default Set Range Description
$resource array required parameter N/A N/A The TAR file handle
$tolerate_errors boolean False N/A N/A Whether to tolerate errors (returns null if error)

Return

  • A list of maps that stores 'path', 'mode', 'size' and 'mtime', for each file in the archive (null: error)
  • Type: ?array
  • Set: N/A
  • Range: N/A