anchor.diff:                  size = SizeAttr,
                   mtime = ModificationTime,
                   mode = PermissionsAttr,
  +                shares = Shares,
                   provider_id = ProviderId
               } = FileAttr,
   
  -            % Resolve parent guid of this file
  -            {ok, ParentGUID} = logical_file_manager:get_parent(
  -                SessionId, {guid, FileId}
  -            ),
  -            % If the parent guid is the same as file id, it means that it is
  -            % the root file of the share -> tell ember there is no parent.
  -            Parent = case ParentGUID of
  -                FileId -> null;
  -                GUID -> GUID
  -            end,
  +            ParentUUID = case Shares of
  +                [ShareId] ->
  +                    % Check if this is the root dir
  +                    <<"containerDir.", ShareId/binary>>;
  +                [] ->
  +                    op_gui_utils:ids_to_association(
  +                        ShareId, get_parent(SessionId, FileId)
  +                    )
  +            end,
  +
               {Type, Size} = case TypeAttr of
                   ?DIRECTORY_TYPE -> {<<"dir">>, null};
                   _ -> {<<"file">>, SizeAttr}
  
positive.code:                 true -> FileId
              end,
              Res = [
                  {<<"id">>, FileId},
                  {<<"name">>, Name},
                  {<<"type">>, Type},
                  {<<"permissions">>, Permissions},
                  {<<"modificationTime">>, ModificationTime},
                  {<<"size">>, Size},
                  {<<"parent">>, Parent},
                  {<<"children">>, ChildrenIds},
                  {<<"fileAcl">>, FileId},
                  {<<"share">>, null},
  
negative.code: -export([init/0, terminate/0]).
  -export([find/2, find_all/1, find_query/2]).
  -export([create_record/2, update_record/3, delete_record/2]).
  
  %%%===================================================================
  %%% API functions
  