classes/phing/system/io/PhingFile.php
public function copyTo(PhingFile $destFile)
    {
        $fs = FileSystem::getFileSystem();

        if ($fs->checkAccess($this) !== true) {
            throw new IOException("No read access to " . $this->getPath() . "\n");
        }

        if ($fs->checkAccess($destFile, true) !== true) {
            throw new IOException("File::copyTo() No write access to " . $destFile->getPath());
        }

        $fs->copy($this, $destFile);
    }
public function copyTo(PhingFile $destFile)
    {
        $fs = FileSystem::getFileSystem();

        if ($fs->checkAccess($this) !== true) {
            throw new IOException("No read access to " . $this->getPath() . "\n");
        }

        if ($fs->checkAccess($destFile, true) !== true) {
            throw new IOException("File::copyTo() No write access to " . $destFile->getPath());
        }

        $fs->copy($this, $destFile);
    }
public function copyTo ( PhingFile $ destFile ) { $ fs = FileSystem :: getFileSystem ( ) ; if ( $ fs -> checkAccess ( $ this ) !== true ) { throw new IOException ( "No read access to " . $ this -> getPath ( ) . "\n" ) ; } if ( $ fs -> checkAccess ( $ destFile , true ) !== true ) { throw new IOException ( "File::copyTo() No write access to " . $ destFile -> getPath ( ) ) ; } $ fs -> copy ( $ this , $ destFile ) ; }
Simple-copies file denoted by this abstract pathname into another
PhingFile

@param  PhingFile $destFile The new abstract pathname for the named file
@throws IOException
Simple - copies file denoted by this abstract pathname into another PhingFile