anchor.diff:  get_ancestors(Entry) ->
       ?run(begin
           {ok, #document{key = Key} = Doc} = get(Entry),
  -        set_link_context(Doc),
           {ok, get_ancestors2(Key, [])}
       end).
   get_ancestors2(?ROOT_DIR_UUID, Acc) ->
  
positive.code:     {ok, #document{} = ParentDoc} = get(Parent),
      {ok, #document{value = #file_meta{name = FileName, version = V}} = FileDoc} = get(Entry),
      {ok, Scope} = get_scope(Parent),
      set_link_context(Scope),
      datastore:run_transaction(fun() ->
          ok = datastore:set_links(?LINK_STORE_LEVEL, ParentDoc, {FileName, FileDoc}),
          ok = datastore:set_links(?LINK_STORE_LEVEL, ParentDoc, {snapshot_name(FileName, V), FileDoc}),
  
negative.code:     get_parent_uuid/1, get_parent_uuid/2, get_parent_uuid_in_context/1, rename/2, setup_onedata_user/2]).
  -export([get_ancestors/1, attach_location/3, get_locations/1, get_space_dir/1, location_ref/1]).
  -export([snapshot_name/2, get_current_snapshot/1, to_uuid/1, is_root_dir/1]).
  -export([fix_parent_links/2, fix_parent_links/1, exists_local_link_doc/1, get_child/2]).
  -export([create_phantom_file/3, get_guid_from_phantom_file/1]).
  -export([hidden_file_name/1]).
  -export([add_share/2, remove_share/2]).
  