Function __global->make_missing_directory

Definitions

sources/files2.php

  • Make a missing required directory, or exit with an error if we cannot (unless error suppression is on).
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: bool

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$dir PATH No No required parameter N/A N/A Path to create
$make_index_file boolean No No True N/A N/A Whether to make an empty index file, to prevent browsing

Returns

  • Success status
  • Type: boolean
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Make a missing required directory, or exit with an error if we cannot (unless error suppression is on).
 *
 * @param  PATH $dir Path to create
 * @param  boolean $make_index_file Whether to make an empty index file, to prevent browsing
 * @return boolean Success status
 */

function make_missing_directory(string $dir, bool $make_index_file = true) : bool