Jelix\Installer\AbstractInstaller::copyFile PHP Method

copyFile() final protected method

copy a file from the install/ directory to an other
final protected copyFile ( string $relativeSourcePath, string $targetPath, $overwrite = false )
$relativeSourcePath string relative path to the install/ directory of the file to copy
$targetPath string the full path where to copy the file
    protected final function copyFile($relativeSourcePath, $targetPath, $overwrite = false)
    {
        $targetPath = $this->expandPath($targetPath);
        if (!$overwrite && file_exists($targetPath)) {
            return;
        }
        $dir = dirname($targetPath);
        \jFile::createDir($dir);
        copy($this->path . 'install/' . $relativeSourcePath, $targetPath);
    }