anchor.diff:              {LocalResult, FileCtx} = import_file_safe(Job2),
               {LocalResult, FileCtx, Job2};
           {ok, FileUuid} ->
  +            FileGuid = fslogic_uuid:uuid_to_guid(FileUuid, SpaceId),
  +            FileCtx = file_ctx:new_by_guid(FileGuid),
               case FileType of
                   ?DIRECTORY_TYPE ->
  -                    {FileCtx0, _} = get_child(FileName, ParentCtx),
  -                    maybe_import_file_with_existing_metadata(Job2, FileCtx0);
  +                    maybe_import_file_with_existing_metadata(Job2, FileCtx);
                   ?REGULAR_FILE_TYPE ->
                       case file_location:get_local(FileUuid) of
                           {ok, #document{
  
positive.code:                                 size = Size,
                                  blocks = [#file_block{offset = 0, size = Size}]
                              }}} ->
                              {FileCtx0, _} = get_child(FileName, ParentCtx),
                              maybe_import_file_with_existing_metadata(Job2, FileCtx0);
                          _Other ->
                              {FileCtx0, _} = get_child(FileName, ParentCtx),
                              {processed, FileCtx0, Job2}
                      end
              end
      end.
  
negative.code: %%--------------------------------------------------------------------
  %% @private
  %% @doc
  %% Checks whether given file on given storage is already imported to
  %% onedata filesystem.
  %% @end
  