classes/phing/system/io/FileSystem.php
public function rename(PhingFile $f1, PhingFile $f2)
    {
        // get the canonical paths of the file to rename
        $src = $f1->getAbsolutePath();
        $dest = $f2->getAbsolutePath();
        if (false === @rename($src, $dest)) {
            $msg = "Rename FAILED. Cannot rename $src to $dest. $php_errormsg";
            throw new IOException($msg);
        }
    }
public function rename(PhingFile $f1, PhingFile $f2)
    {
        // get the canonical paths of the file to rename
        $src = $f1->getAbsolutePath();
        $dest = $f2->getAbsolutePath();
        if (false === @rename($src, $dest)) {
            $msg = "Rename FAILED. Cannot rename $src to $dest. $php_errormsg";
            throw new IOException($msg);
        }
    }
public function rename ( PhingFile $ f1 , PhingFile $ f2 ) { // get the canonical paths of the file to rename $ src = $ f1 -> getAbsolutePath ( ) ; $ dest = $ f2 -> getAbsolutePath ( ) ; if ( false === @ rename ( $ src , $ dest ) ) { $ msg = "Rename FAILED. Cannot rename $src to $dest. $php_errormsg" ; throw new IOException ( $ msg ) ; } }
Rename the file or directory denoted by the first abstract pathname to
the second abstract pathname, returning true if and only if
the operation succeeds.

@param  PhingFile $f1 abstract source file
@param  PhingFile $f2 abstract destination file
@return void
@throws IOException if rename cannot be performed
Rename the file or directory denoted by the first abstract pathname to the second abstract pathname returning true if and only if the operation succeeds .