Copies the contents of a directory recursively from $source to $target.
public static copyRecursive ( string $source, string $target, boolean $excludePhp = false ) | ||
$source | string | A directory or file to copy, eg. './tmp/latest'. |
$target | string | A directory to copy to, eg. '.'. |
$excludePhp | boolean | Whether to avoid copying files if the file is related to PHP (includes .php, .tpl, .twig files). |