anchor.diff:      end).
   
   
  +%%--------------------------------------------------------------------
  +%% @doc
  +%% Force set "scope" document for given file_meta:entry() and all its children recursively but only if
  +%% given file_meta:entry() has differen "scope" document.
  +%% @end
  +%%--------------------------------------------------------------------
   -spec update_scopes(Entry :: entry(), NewScope :: datastore:document()) -> ok | datastore:generic_error().
   update_scopes(Entry, #document{key = NewScopeUUID} = NewScope) ->
       ?run(begin
  
positive.code:         _  -> false
      end.
  
  -spec normalize_error(term()) -> term().
  normalize_error({badmatch, Reason}) ->
      normalize_error(Reason);
  
negative.code: %%% Internal functions
  %%%===================================================================
  
  
  %%--------------------------------------------------------------------
  %% @doc
  %% Internel helper function for rename/2.
  %% @end
  %%--------------------------------------------------------------------
  -spec rename3(Subject :: datastore:document(), ParentUUID :: uuid(), {name, NewName :: name()} | {path, NewPath :: path()}) ->
      ok | datastore:generic_error().
  rename3(#document{value = #file_meta{name = OldName}} = Subject, ParentUUID, {name, NewName}) ->
  