source/Core/UtilsFile.php
protected function _copyFile($sSource, $sTarget)
    {
        if (!is_dir(dirname($sTarget))) {
            mkdir(dirname($sTarget), 0744, true);
        }

        $blDone = true;
        if ($sSource !== $sTarget) {
            $blDone = copy($sSource, $sTarget);
        }

        if ($blDone) {
            $blDone = @chmod($sTarget, 0644);
        }

        return $blDone;
    }
protected function _copyFile($sSource, $sTarget)
    {
        if (!is_dir(dirname($sTarget))) {
            mkdir(dirname($sTarget), 0744, true);
        }

        $blDone = true;
        if ($sSource !== $sTarget) {
            $blDone = copy($sSource, $sTarget);
        }

        if ($blDone) {
            $blDone = @chmod($sTarget, 0644);
        }

        return $blDone;
    }
protected function _copyFile ( $ sSource , $ sTarget ) { if ( ! is_dir ( dirname ( $ sTarget ) ) ) { mkdir ( dirname ( $ sTarget ) , 0744 , true ) ; } $ blDone = true ; if ( $ sSource !== $ sTarget ) { $ blDone = copy ( $ sSource , $ sTarget ) ; } if ( $ blDone ) { $ blDone = @ chmod ( $ sTarget , 0644 ) ; } return $ blDone ; }
Copy file from source to target location

@param string $sSource file location
@param string $sTarget file location

@return bool
Copy file from source to target location