final public function copyDirectory($source,
$destination) { $source =
$this->
sanitizePath($source);
$destination =
$this->
fixRemotePath($destination);
$this->
checkPath($destination);
$this->
copyDirectoryJailed($source,
$destination);
} /**
* Changes the permissions of the specified $path (file or directory).
*
* @param string $path
* The file / directory to change the permissions of.
* @param int $mode
* The new file permission mode to be passed to chmod().
* @param bool $recursive
* Pass TRUE to recursively chmod the entire directory specified in $path.
*
* @throws \Drupal\Core\FileTransfer\FileTransferException
*
* @see http://php.net/chmod
*/