anchor.diff:                  OwnerId, ParentUuid, SpaceId),
               {ok, FileUuid} = file_meta:create({uuid, ParentUuid}, FileMetaDoc2),
               {ok, FileMetaDoc2};
  +        {error, already_exists} when IteratorType =:= ?FLAT_ITERATOR ->
  +            % TODO VFS-6476 how to prevent conflicts on s3?
  +            {ok, FileMetaDoc};
           {ok, FileUuid} ->
               {ok, FileMetaDoc}
       end,
       FileCtx = file_ctx:new_by_doc(FinalDoc, SpaceId, undefined),
       ok = fslogic_event_emitter:emit_file_attr_changed(FileCtx, []),
       {ok, FileCtx, StorageFileCtx2}.
  -
   
   -spec create_missing_parent_file_meta(file_meta:uuid(), storage_file_ctx:ctx(), file_meta:uuid()) ->
       {ok, file_ctx:ctx()}.
  
positive.code:             {error, Error}
      end.
  
  -spec create_file_meta(file_meta:uuid(), storage_file_ctx:ctx(), od_user:id(), file_meta:uuid()) ->
      {ok, file_ctx:ctx(), storage_file_ctx:ctx()} | {error, term()}.
  create_file_meta(FileUuid, StorageFileCtx, OwnerId, ParentUuid) ->
      SpaceId = storage_file_ctx:get_space_id_const(StorageFileCtx),
      FileName = storage_file_ctx:get_file_name_const(StorageFileCtx),
      {#statbuf{st_mode = Mode}, StorageFileCtx2} = storage_file_ctx:stat(StorageFileCtx),
      FileMetaDoc = file_meta:new_doc(FileUuid, FileName, file_meta:type(Mode), Mode band 8#1777,
          OwnerId, ParentUuid, SpaceId),
      {ok, FinalDoc} = case file_meta:create({uuid, ParentUuid}, FileMetaDoc) of
          {error, already_exists} ->
              % there was race with creating file by lfm
              % file will be imported with suffix
              FileName2 = ?IMPORTED_CONFLICTING_FILE_NAME(FileName),
  
negative.code: -include("modules/datastore/datastore_runner.hrl").
  -include("proto/oneclient/fuse_messages.hrl").
  -include("global_definitions.hrl").
  -include("modules/storage/traverse/storage_traverse.hrl").
  -include("proto/oneprovider/provider_messages.hrl").
  -include_lib("ctool/include/logging.hrl").
  
  