<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic list_folder / get_file_metadata not returning path_lower in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/list-folder-get-file-metadata-not-returning-path-lower/m-p/615185#M28395</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying the list_folder &amp;amp; get_file_metadata APIs, but both of them doesn't seem to be returning path_lower/path information in FileMetadata. The value is null. I tried from my java code and from the API explorer. Response from API explorer is below.&amp;nbsp; (from&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-api-v2-explorer/#sharing_get_file_metadata" target="_blank" rel="noopener"&gt;https://dropbox.github.io/dropbox-api-v2-explorer/#sharing_get_file_metadata&lt;/A&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The account I am trying to connect is a Business Account.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;{
  "access_type": {
    ".tag": "editor"
  },
  "id": "id:IDHERE",
  "name": "filename",
  "owner_team": {
    "id": "dbtid:OWNERIDHERE",
    "name": "abc"
  },
  "parent_shared_folder_id": "42234440401",
  "policy": {
    "member_policy": {
      ".tag": "anyone"
    },
    "resolved_member_policy": {
      ".tag": "anyone"
    },
    "acl_update_policy": {
      ".tag": "editors"
    },
    "shared_link_policy": {
      ".tag": "anyone"
    },
    "viewer_info_policy": {
      ".tag": "enabled"
    }
  },
  "preview_url": "https://www.dropbox.com/scl/fi/k7wbl8c7hm9z4jvekfwwz/filename...",
  "time_invited": "2022-08-10T17:34:35Z"
}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 11 Aug 2022 17:28:57 GMT</pubDate>
    <dc:creator>jerry14</dc:creator>
    <dc:date>2022-08-11T17:28:57Z</dc:date>
    <item>
      <title>list_folder / get_file_metadata not returning path_lower</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/list-folder-get-file-metadata-not-returning-path-lower/m-p/615185#M28395</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying the list_folder &amp;amp; get_file_metadata APIs, but both of them doesn't seem to be returning path_lower/path information in FileMetadata. The value is null. I tried from my java code and from the API explorer. Response from API explorer is below.&amp;nbsp; (from&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-api-v2-explorer/#sharing_get_file_metadata" target="_blank" rel="noopener"&gt;https://dropbox.github.io/dropbox-api-v2-explorer/#sharing_get_file_metadata&lt;/A&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The account I am trying to connect is a Business Account.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;{
  "access_type": {
    ".tag": "editor"
  },
  "id": "id:IDHERE",
  "name": "filename",
  "owner_team": {
    "id": "dbtid:OWNERIDHERE",
    "name": "abc"
  },
  "parent_shared_folder_id": "42234440401",
  "policy": {
    "member_policy": {
      ".tag": "anyone"
    },
    "resolved_member_policy": {
      ".tag": "anyone"
    },
    "acl_update_policy": {
      ".tag": "editors"
    },
    "shared_link_policy": {
      ".tag": "anyone"
    },
    "viewer_info_policy": {
      ".tag": "enabled"
    }
  },
  "preview_url": "https://www.dropbox.com/scl/fi/k7wbl8c7hm9z4jvekfwwz/filename...",
  "time_invited": "2022-08-10T17:34:35Z"
}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2022 17:28:57 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/list-folder-get-file-metadata-not-returning-path-lower/m-p/615185#M28395</guid>
      <dc:creator>jerry14</dc:creator>
      <dc:date>2022-08-11T17:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: list_folder / get_file_metadata not returning path_lower</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/list-folder-get-file-metadata-not-returning-path-lower/m-p/615215#M28396</link>
      <description>&lt;P&gt;If the path fields aren't set, e.g., in the metadata for an item returned by &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder" target="_blank"&gt;/2/files/list_folder&lt;/A&gt;[&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder-continue" target="_blank"&gt;/continue&lt;/A&gt;] or &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#sharing-get_file_metadata" target="_blank"&gt;/2/sharing/get_file_metadata&lt;/A&gt;, that indicates that the item isn't "mounted" in the account/root for the call, and so does not have a path to include.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The &lt;A href="https://developers.dropbox.com/dbx-file-access-guide" target="_blank"&gt;File Access Guide&lt;/A&gt;, &lt;A href="https://developers.dropbox.com/dbx-sharing-guide" target="_blank"&gt;Sharing Guide&lt;/A&gt;, and &lt;A href="https://developers.dropbox.com/dbx-team-files-guide" target="_blank"&gt;Team Files Guide&lt;/A&gt; may be useful references.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you believe this is occurring erroneously, please show us how you're configuring the call so we can take a look. Just be sure to redact the access token.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2022 20:52:29 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/list-folder-get-file-metadata-not-returning-path-lower/m-p/615215#M28396</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-08-10T20:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: list_folder / get_file_metadata not returning path_lower</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/list-folder-get-file-metadata-not-returning-path-lower/m-p/615233#M28397</link>
      <description>&lt;P&gt;Thanks. I went through the documentation, still unable to pinpoint the issue. I am calling list folder API using folder id, is that the reason?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ListFolderResult listFolderResult = &lt;SPAN&gt;dbxTeamClient&lt;/SPAN&gt;.asAdmin(&amp;lt;ADMINID&amp;gt;)&lt;BR /&gt;        .files()&lt;BR /&gt;        .listFolderBuilder(&amp;lt;FOLDER_ID&amp;gt;)&lt;BR /&gt;        .withRecursive(&lt;SPAN&gt;true&lt;/SPAN&gt;)&lt;BR /&gt;        .start()&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2022 23:08:22 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/list-folder-get-file-metadata-not-returning-path-lower/m-p/615233#M28397</guid>
      <dc:creator>jerry14</dc:creator>
      <dc:date>2022-08-10T23:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: list_folder / get_file_metadata not returning path_lower</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/list-folder-get-file-metadata-not-returning-path-lower/m-p/615360#M28398</link>
      <description>&lt;P&gt;In this case, this would be because you're using asAdmin as to administratively access team content on behalf of an admin, who may not necessarily have that content mounted in their account.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To get the path values, you'll need to make the call in a context where the content is mounted, such as by doing any of the following, as applicable/desired:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;use &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v5.3.0/com/dropbox/core/v2/DbxClientV2.html#withPathRoot(com.dropbox.core.v2.common.PathRoot)" target="_self"&gt;withPathRoot&lt;/A&gt; to set the root for the call to somewhere where the content is mounted (e.g., a team space, or a member folder)&lt;/LI&gt;
&lt;LI&gt;switch to using &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v5.3.0/com/dropbox/core/v2/DbxTeamClientV2.html#asMember(java.lang.String)" target="_self"&gt;asMember&lt;/A&gt; instead of asAdmin, if the admin does have the content mounted in their account&lt;/LI&gt;
&lt;LI&gt;switch to using &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v5.3.0/com/dropbox/core/v2/DbxTeamClientV2.html#asMember(java.lang.String)" target="_self"&gt;asMember&lt;/A&gt; instead of asAdmin and instead specify the member ID for a member that does have the content mounted in their account&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Thu, 11 Aug 2022 13:38:58 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/list-folder-get-file-metadata-not-returning-path-lower/m-p/615360#M28398</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-08-11T13:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: list_folder / get_file_metadata not returning path_lower</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/list-folder-get-file-metadata-not-returning-path-lower/m-p/615518#M28399</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/10"&gt;@Greg-DB&lt;/a&gt;&amp;nbsp;Thanks. Setting withPathRoot resolved the issue.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2022 22:43:40 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/list-folder-get-file-metadata-not-returning-path-lower/m-p/615518#M28399</guid>
      <dc:creator>jerry14</dc:creator>
      <dc:date>2022-08-11T22:43:40Z</dc:date>
    </item>
  </channel>
</rss>

