Function __global->sync_file_move

Definitions

sources/global2.php

  • Provides an override point for file-move synchronisation between mirrored servers. Called after any rename or move action.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$old PATH No No required parameter N/A N/A File/directory name to move from (may be full or relative path)
$new PATH No No required parameter N/A N/A File/directory name to move to (may be full or relative path)

Preview

Code (PHP)

/**
 * Provides an override point for file-move synchronisation between mirrored servers. Called after any rename or move action.
 *
 * @param  PATH $old File/directory name to move from (may be full or relative path)
 * @param  PATH $new File/directory name to move to (may be full or relative path)
 */

function sync_file_move(string $old, string $new)