Function __global->_sync_file_move

Definitions

sources/files2.php

  • Provides a hook 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 a hook 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)