Function Commandr_fs->move_file

Definitions

sources/commandr_fs.php

  • Move a file. Equivalent to Unix "mv".
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: bool

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$to_move array No No required parameter N/A N/A The file to move
$destination array No No required parameter N/A N/A The destination path

Returns

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

Preview

Code (PHP)

/**
 * Move a file. Equivalent to Unix "mv".
 *
 * @param  array $to_move The file to move
 * @param  array $destination The destination path
 * @return boolean Success?
 */

public function move_file(array $to_move, array $destination) : bool