anchor.diff:                  mode = PermissionsAttr,
                   shares = Shares} = FileAttr,
   
  -            UserRootDirUUID = get_user_root_dir_uuid(SessionId),
  -            ParentUUID = case get_parent(SessionId, FileId) of
  -                UserRootDirUUID ->
  -                    null;
  -                Other ->
  -                    Other
  +            % 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,
               {Type, Size} = case TypeAttr of
                   ?DIRECTORY_TYPE -> {<<"dir">>, null};
  
positive.code: %%--------------------------------------------------------------------
  -spec delete_record(RsrcType :: binary(), Id :: binary()) ->
      ok | gui_error:error_result().
  delete_record(_, FileId) ->
      SessionId = g_session:get_session_id(),
      case logical_file_manager:rm_recursive(SessionId, {guid, FileId}) of
          ok ->
              ok;
          {error, ?EACCES} ->
              gui_error:report_warning(
                  <<"Cannot remove file or directory - access denied.">>)
      end.
  
  
  %%%===================================================================
  
negative.code:         value = #share_info{
              name = Name,
              root_file_id = RootFileId,
              public_url = PublicURL
          }}} = share_info:get(ShareId),
      {ok, [
          {<<"id">>, ShareId},
          {<<"name">>, Name},
          {<<"file">>, RootFileId},
          {<<"publicUrl">>, PublicURL}
      ]};
  find(<<"file-public">>, FileId) ->
  