Function __global->move_folder_contents

Definitions

sources/upgrade_lib.php

  • Move files from one folder to another.Doesn't move .htaccess and index.html.Deletes the folder afterward.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$from PATH No No required parameter N/A N/A Source path
$to PATH No No required parameter N/A N/A Destination path

Preview

Code (PHP)

/**
 * Move files from one folder to another.Doesn't move .htaccess and index.html.Deletes the folder afterward.
 *
 * @param  PATH $from Source path
 * @param  PATH $to Destination path
 */

function move_folder_contents(string $from, string $to)