anchor.diff:          end,
   
           #{
  -            <<"name">> => Name,
  -            <<"index">> => Name,
  +            <<"name">> => DisplayedName,
  +            <<"index">> => FileName,
               <<"type">> => Type,
               <<"posixPermissions">> => integer_to_binary((Mode rem 8#1000), 8),
               <<"mtime">> => ModificationTime,
  
positive.code:         _ ->
              {<<"file">>, SizeAttr}
      end,
  
      fun(#auth{session_id = SessId}) ->
          FileUuid = file_id:guid_to_uuid(Guid),
          {ok, ActivePermsType} = file_meta:get_active_perms_type(FileUuid),
  
          Parent = case fslogic_uuid:is_space_dir_guid(Guid) of
              true ->
                  null;
              false ->
                  {ok, ParentGuid} = ?check(lfm:get_parent(SessId, {guid, Guid})),
                  gri:serialize(#gri{
                      type = op_file,
                      id = ParentGuid,
                      aspect = instance,
                      scope = private
                  })
          end,
  
          SharesGRI = case Shares of
  
negative.code:         end,
  
          #{
              <<"name">> => DisplayedName,
              <<"owner">> => gri:serialize(#gri{
                  type = op_user,
                  id = Owner,
                  aspect = instance,
                  scope = shared
              }),
              <<"index">> => FileName,
              <<"type">> => Type,
              <<"posixPermissions">> => integer_to_binary((Mode rem 8#1000), 8),
              <<"activePermissionsType">> => ActivePermsType,
  