anchor.diff:  -include("op_logic.hrl").
   -include("modules/logical_file_manager/lfm.hrl").
   -include_lib("ctool/include/api_errors.hrl").
  +-include_lib("ctool/include/posix/errors.hrl").
   
   -export([op_logic_plugin/0]).
   -export([
  
positive.code:                 false
              end
          end}
  
      }
  };
  
  data_spec(#op_req{operation = create, gri = #gri{aspect = attrs}}) -> #{
  
negative.code: create(#op_req{auth = Auth, data = Data, gri = #gri{aspect = instance} = GRI}) ->
      SessionId = Auth#auth.session_id,
  
      {ok, Guid} = create_file(
          SessionId,
          maps:get(<<"parent">>, Data),
          maps:get(<<"name">>, Data),
          undefined,
          binary_to_atom(maps:get(<<"type">>, Data), utf8),
          0,
          maps:get(<<"createAttempts">>, Data, 1) - 1
      ),
  
      {ok, Attrs} = ?check(lfm:stat(SessionId, {guid, Guid})),
      {ok, resource, {GRI#gri{id = Guid}, Attrs}};
  