public function rename( $new_file )
    {
        $res = @rename( $this->path, $new_file->getPath() );
        if ( $res === FALSE ){
            throw new FileRenameException($this, $new_file);
        }
    }
public function rename( $new_file )
    {
        $res = @rename( $this->path, $new_file->getPath() );
        if ( $res === FALSE ){
            throw new FileRenameException($this, $new_file);
        }
    }
public function rename ( $ new_file ) { $ res = @ rename ( $ this -> path , $ new_file -> getPath ( ) ) ; if ( $ res === FALSE ) { throw new FileRenameException ( $ this , $ new_file ) ; } }
Rename the file or directory

@param File $new_file

@throws FileRenameException
Rename the file or directory