Function Commandr_fs->_get_current_dir_contents

Definitions

sources/commandr_fs.php

  • Return the contents of the given directory in $this->commandr_fs (i.e. ls without the fancy bits).
  • Visibility: protected
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$dir ?array No No Null N/A N/A Directory (null: current directory is used)
$full_paths boolean No No False N/A N/A Whether to use full paths

Returns

  • Directory contents (false: failure)
  • Type: ~array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Return the contents of the given directory in $this->commandr_fs (i.e. ls without the fancy bits).
 *
 * @param  ?array $dir Directory (null: current directory is used)
 * @param  boolean $full_paths Whether to use full paths
 * @return ~array Directory contents (false: failure)
 */

protected function _get_current_dir_contents(?array $dir = null, bool $full_paths = false)