anchor.diff:      end.
   
   
  +%%--------------------------------------------------------------------
  +%% @doc
  +%% Returns uuid() for given file_meta:entry(). Providers for example path() -> uuid() conversion.
  +%% @end
  +%%--------------------------------------------------------------------
   -spec to_uuid(entry()) -> {ok, uuid()} | datastore:generic_error().
   to_uuid({uuid, UUID}) ->
       {ok, UUID};
  
positive.code:     end).
  
  
  -spec set_scopes6(Entry :: entry() | [entry()], NewScopeUUID :: uuid(), [pid()], [pid()],
      Offset :: non_neg_integer(), BatchSize :: non_neg_integer()) -> ok | no_return().
  set_scopes6(Entry, NewScopeUUID, [], SettersBak, Offset, BatchSize) ->
      set_scopes6(Entry, NewScopeUUID, SettersBak, [], Offset, BatchSize);
  set_scopes6([], _NewScopeUUID, _Setters, _SettersBak, _Offset, _BatchSize) ->
      ok;
  set_scopes6([Entry | R], NewScopeUUID, [Setter | Setters], SettersBak, Offset, BatchSize) ->
      ok = set_scopes6(Entry, NewScopeUUID, [Setter | Setters], SettersBak, Offset, BatchSize),
      ok = set_scopes6(R, NewScopeUUID, Setters, [Setter | SettersBak], Offset, BatchSize);
  set_scopes6(Entry, NewScopeUUID, [Setter | Setters], SettersBak, Offset, BatchSize) ->
      Setter ! {Entry, NewScopeUUID},
      {ok, UUIDs} = list_uuids(Entry, Offset, BatchSize),
      case length(UUIDs) < BatchSize of
          true -> ok;
          false ->
  
negative.code:     ok = set_scopes6([{uuid, UUID} || UUID <- UUIDs], NewScopeUUID, Setters, [Setter | SettersBak], 0, BatchSize).
  
  
  %%--------------------------------------------------------------------
  %% @doc
  %% Internal helper for gen_path/1. Accumulates all intermediate documents and concatenates them into path().
  %% @end
  %%--------------------------------------------------------------------
  -spec gen_path2(entry(), [datastore:document()]) -> {ok, path()} | datastore:generic_error() | no_return().
  gen_path2(Entry, Acc) ->
      {ok, #document{} = Doc} = get(Entry),
  