public static function rename(String $oldName, String $newName) : Bool
    {
        $oldName = Info::rpath($oldName);

        if( ! file_exists($oldName) )
        {
            throw new Exception\FileNotFoundException(NULL, $oldName);
        }

        return rename($oldName, $newName);
    }
public static function rename(String $oldName, String $newName) : Bool
    {
        $oldName = Info::rpath($oldName);

        if( ! file_exists($oldName) )
        {
            throw new Exception\FileNotFoundException(NULL, $oldName);
        }

        return rename($oldName, $newName);
    }
public static function rename ( String $ oldName , String $ newName ) : Bool { $ oldName = Info :: rpath ( $ oldName ) ; if ( ! file_exists ( $ oldName ) ) { throw new Exception \ FileNotFoundException ( NULL , $ oldName ) ; } return rename ( $ oldName , $ newName ) ; }
Change the name of a file.

@param string $oldName
@param string $newName

@return bool
Change the name of a file .