anchor.diff:  %% and save their names in ets TableName.
   %% @end
   %%-------------------------------------------------------------------
  --spec save_db_children_names(atom(), file_ctx:ctx()) -> term().
  +-spec save_db_children_names(atom(), file_ctx:ctx()) -> ok.
   save_db_children_names(TableName, FileCtx) ->
       FileUuid = file_ctx:get_uuid_const(FileCtx),
  +    UserCtx = user_ctx:new(?ROOT_SESS_ID),
       file_meta:foreach_child({uuid, FileUuid}, fun
           (LinkName, _LinkTarget, AccIn) ->
               case file_meta:is_hidden(LinkName) of
  
positive.code:                     ets:insert(TableName, {LinkName, undefined}),
                      AccIn
              end
      end, []).
  
  %%-------------------------------------------------------------------
  %% @private
  
negative.code: -spec maybe_delete_imported_dir_and_update_counters(file_ctx:ctx(),
      od_space:id(), storage:id()) -> ok.
  maybe_delete_imported_dir_and_update_counters(FileCtx, SpaceId, StorageId) ->
      delete_imported_dir(FileCtx, SpaceId, StorageId),
      {StorageFileId, _} = file_ctx:get_storage_file_id(FileCtx),
      storage_sync_utils:log_deletion(StorageFileId, SpaceId),
      storage_sync_monitoring:mark_deleted_file(SpaceId, StorageId),
      ok.
  
  %%-------------------------------------------------------------------
  %% @doc
  %% This function deletes regular file and update syn counters.
  %% @end
  %%-------------------------------------------------------------------
  -spec maybe_delete_imported_regular_file_and_update_counters(file_ctx:ctx(),
      od_space:id(), storage:id()) -> ok.
  maybe_delete_imported_regular_file_and_update_counters(FileCtx, SpaceId, StorageId) ->
      delete_imported_file(FileCtx),
      {StorageFileId, _} = file_ctx:get_storage_file_id(FileCtx),
      storage_sync_utils:log_deletion(StorageFileId, SpaceId),
      storage_sync_monitoring:mark_deleted_file(SpaceId, StorageId),
      ok.
  
  
  