Copies a file from $source to $dest.
public static copy ( string $source, string $dest, boolean $excludePhp = false ) : true | ||
$source | string | A path to a file, eg. './tmp/latest/index.php'. The file must exist. |
$dest | string | A path to a file, eg. './index.php'. The file does not have to exist. |
$excludePhp | boolean | Whether to avoid copying files if the file is related to PHP (includes .php, .tpl, .twig files). |
return | true |