public function copyFile($sourcePath, $targetPath, $filename)
    {
        // Check paths
        if ($sourcePath === $targetPath) {
            return;
        }

        $targetFilepath = $targetPath.$filename;

        // Check if file exists and create it
        if (file_exists($targetFilepath)) {
            return;
        }

        // Build new contents
        $sourceFilepath = $sourcePath.$filename;
        $ctns = '';

        // Check the old file to copy its contents
        if (file_exists($sourceFilepath)) {
            $copy = copy($sourceFilepath, $targetFilepath);
        } else {
            self::filePutContents($targetFilepath, '', 'This file has been auto-generated by the Zeus package without any content');
        }
    }
public function copyFile($sourcePath, $targetPath, $filename)
    {
        // Check paths
        if ($sourcePath === $targetPath) {
            return;
        }

        $targetFilepath = $targetPath.$filename;

        // Check if file exists and create it
        if (file_exists($targetFilepath)) {
            return;
        }

        // Build new contents
        $sourceFilepath = $sourcePath.$filename;
        $ctns = '';

        // Check the old file to copy its contents
        if (file_exists($sourceFilepath)) {
            $copy = copy($sourceFilepath, $targetFilepath);
        } else {
            self::filePutContents($targetFilepath, '', 'This file has been auto-generated by the Zeus package without any content');
        }
    }
public function copyFile ( $ sourcePath , $ targetPath , $ filename ) { // Check paths if ( $ sourcePath === $ targetPath ) { return ; } $ targetFilepath = $ targetPath . $ filename ; // Check if file exists and create it if ( file_exists ( $ targetFilepath ) ) { return ; } // Build new contents $ sourceFilepath = $ sourcePath . $ filename ; $ ctns = '' ; // Check the old file to copy its contents if ( file_exists ( $ sourceFilepath ) ) { $ copy = copy ( $ sourceFilepath , $ targetFilepath ) ; } else { self :: filePutContents ( $ targetFilepath , '' , 'This file has been auto-generated by the Zeus package without any content' ) ; } }
Copy a file contents from this internal assets folder to the public dist Olympus assets folder.

@param string $sourcePath
@param string $targetPath
@param string $filename
Copy a file contents from this internal assets folder to the public dist Olympus assets folder .