Function Hook_commandr_fs_filedump->make_directory

Definitions

sources/hooks/systems/commandr_fs/filedump.php

  • Standard Commandr-fs directory creation function for commandr_fs hooks.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: bool

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$meta_dir array No No required parameter N/A N/A The current meta-directory path
$meta_root_node string No No required parameter N/A N/A The root node of the current meta-directory
$new_dir_name string No No required parameter N/A N/A The new directory name
&$commandr_fs object Yes No required parameter N/A N/A A reference to the Commandr filesystem object

Returns

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

Preview

Code (PHP)

/**
 * Standard Commandr-fs directory creation function for commandr_fs hooks.
 *
 * @param  array $meta_dir The current meta-directory path
 * @param  string $meta_root_node The root node of the current meta-directory
 * @param  string $new_dir_name The new directory name
 * @param  object $commandr_fs A reference to the Commandr filesystem object
 * @return boolean Success?
 */

public function make_directory(array $meta_dir, string $meta_root_node, string $new_dir_name, object &$commandr_fs) : bool