public static function rename($oldName, $newName, $context = null)
    {
        return self::resourceExists($oldName) ? rename($oldName, $newName, $context) : false;
    }
public static function rename($oldName, $newName, $context = null)
    {
        return self::resourceExists($oldName) ? rename($oldName, $newName, $context) : false;
    }
public static function rename ( $ oldName , $ newName , $ context = null ) { return self :: resourceExists ( $ oldName ) ? rename ( $ oldName , $ newName , $ context ) : false ; }
Rename a file or a directory

@param  $oldName
@param  $newName
@param  null    $context
@return bool
Rename a file or a directory