classes/phing/system/io/PhingFile.php
public function renameTo(PhingFile $destFile)
    {
        $fs = FileSystem::getFileSystem();
        if ($fs->checkAccess($this) !== true) {
            throw new IOException("No write access to " . $this->getPath());
        }

        $fs->rename($this, $destFile);
    }
public function renameTo(PhingFile $destFile)
    {
        $fs = FileSystem::getFileSystem();
        if ($fs->checkAccess($this) !== true) {
            throw new IOException("No write access to " . $this->getPath());
        }

        $fs->rename($this, $destFile);
    }
public function renameTo ( PhingFile $ destFile ) { $ fs = FileSystem :: getFileSystem ( ) ; if ( $ fs -> checkAccess ( $ this ) !== true ) { throw new IOException ( "No write access to " . $ this -> getPath ( ) ) ; } $ fs -> rename ( $ this , $ destFile ) ; }
Renames the file denoted by this abstract pathname.

@param  PhingFile $destFile The new abstract pathname for the named file
@throws IOException
Renames the file denoted by this abstract pathname .