<?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 Re: list_folder does not return recursive folder listing in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/list-folder-does-not-return-recursive-folder-listing/m-p/330249#M19298</link>
    <description>&lt;P&gt;Can you share the code and parameter values you're using? That should offer some better context so I can advise on this.&lt;/P&gt;
&lt;P&gt;Feel free to &lt;A href="https://www.dropbox.com/developers/contact" target="_self"&gt;open an API ticket&lt;/A&gt; if you'd prefer to share privately. Thanks!&lt;/P&gt;</description>
    <pubDate>Fri, 22 Feb 2019 15:34:11 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2019-02-22T15:34:11Z</dc:date>
    <item>
      <title>list_folder does not return recursive folder listing</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/list-folder-does-not-return-recursive-folder-listing/m-p/330123#M19296</link>
      <description>&lt;P&gt;API document says:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;recursive&lt;/STRONG&gt;&amp;nbsp;&lt;I&gt;Boolean&lt;/I&gt;&amp;nbsp;If true, the list folder operation will be applied recursively to all subfolders and the response will contain contents of all subfolders. The default for this field is False.&lt;/U&gt;&lt;/P&gt;&lt;P&gt;I am trying to list a folder with recursive=True, but the response does not return the contents of the sub-folders.&lt;/P&gt;&lt;P&gt;Here is the folder structure:&lt;/P&gt;&lt;P&gt;/Team Folder&lt;/P&gt;&lt;P&gt;/Team Folder/file.txt&lt;/P&gt;&lt;P&gt;/Team Folder/sub-folder&lt;/P&gt;&lt;P&gt;/Team Folder/sub-folder/file.txt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I call list_folder on '/Team Folder' with recursive set to True, I do not get the content of 'sub-folder' in response. The response only includes sub-folder not its contents.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:07:53 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/list-folder-does-not-return-recursive-folder-listing/m-p/330123#M19296</guid>
      <dc:creator>rk90</dc:creator>
      <dc:date>2019-05-29T09:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: list_folder does not return recursive folder listing</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/list-folder-does-not-return-recursive-folder-listing/m-p/330249#M19298</link>
      <description>&lt;P&gt;Can you share the code and parameter values you're using? That should offer some better context so I can advise on this.&lt;/P&gt;
&lt;P&gt;Feel free to &lt;A href="https://www.dropbox.com/developers/contact" target="_self"&gt;open an API ticket&lt;/A&gt; if you'd prefer to share privately. Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2019 15:34:11 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/list-folder-does-not-return-recursive-folder-listing/m-p/330249#M19298</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-02-22T15:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: list_folder does not return recursive folder listing</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/list-folder-does-not-return-recursive-folder-listing/m-p/330309#M19300</link>
      <description>&lt;P&gt;Here's a sample that may help you understand how I am making the request:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;def list_folders(namespace_id):
    url = 'https://api.dropbox.com/2/files/list_folder'
    headers = {"Dropbox-API-Path-Root": json.dumps({".tag": "namespace_id", "namespace_id": namespace_id})
    body = {"path": f"ns:{namespace_id}", "recursive": True, "limit": 2000}
    response = session.post(url, headers=headers, json=body)
    listing = response.json() #And I don't get the recursive listing.  &lt;/PRE&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2019 19:15:50 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/list-folder-does-not-return-recursive-folder-listing/m-p/330309#M19300</guid>
      <dc:creator>rk90</dc:creator>
      <dc:date>2019-02-22T19:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: list_folder does not return recursive folder listing</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/list-folder-does-not-return-recursive-folder-listing/m-p/330316#M19301</link>
      <description>&lt;P&gt;Thanks! That's helpful. There are two things to note here:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Are you getting&amp;nbsp;"has_more": true in the response? If so, you'll need to call back to&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder-continue" target="_self"&gt;/2/files/list_folder/continue&lt;/A&gt; as covered in the &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder" target="_self"&gt;/2/files/list_folder&lt;/A&gt; documentation. The nested entries may be on the subsequent pages that would be returned by&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder-continue" target="_self"&gt;/2/files/list_folder/continue&lt;/A&gt;.&lt;/LI&gt;
&lt;LI&gt;You're specifying "namespace_id" in both the&amp;nbsp;"Dropbox-API-Path-Root" header as well as the "path" value. It may not make a difference for the actual question here, but you only need to include it in one or the other. (If you set the&amp;nbsp;"Dropbox-API-Path-Root" to the namespace ID, you can just use "" as the path.)&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Fri, 22 Feb 2019 19:45:57 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/list-folder-does-not-return-recursive-folder-listing/m-p/330316#M19301</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-02-22T19:45:57Z</dc:date>
    </item>
    <item>
      <title>Re: list_folder does not return recursive folder listing</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/list-folder-does-not-return-recursive-folder-listing/m-p/330340#M19302</link>
      <description>&lt;P&gt;Thanks Greg!&lt;/P&gt;&lt;P&gt;Yes, 'has_more' is True and when I call `list_folder/continue` with the cursor, I still don't get the recursive folder listing. That is only the child folder is returned in response not its contents. It was working last week.&lt;/P&gt;&lt;P&gt;As for&amp;nbsp;&lt;SPAN&gt;"Dropbox-API-Path-Root", the only reason I am using is if I don't use it, then some some folder entries appear without path_display field. I understand that field is optional in case the folder is not mounted, but I am listing the team folders' contents as admin so it mount should not even come in picture coz I am not accessing the folder through user's namespace.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2019 21:15:56 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/list-folder-does-not-return-recursive-folder-listing/m-p/330340#M19302</guid>
      <dc:creator>rk90</dc:creator>
      <dc:date>2019-02-22T21:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: list_folder does not return recursive folder listing</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/list-folder-does-not-return-recursive-folder-listing/m-p/330772#M19328</link>
      <description>&lt;P&gt;Thanks for following up. I was able to reproduce the behavior of not seeing the nested entries on the first page, but they are getting returned on the second page for me. (It's worth pointing out though that the exact number of pages is not guaranteed; you always need to check the 'has_more' in the result, even on responses from&amp;nbsp;/2/files/list_folder/continue itself. If you're still getting&amp;nbsp;'has_more=true', make sure to keep calling back to paginate through all of the results.)&lt;/P&gt;
&lt;P&gt;If this isn't working for you, we'll be happy to investigate, but we'll need some more information. Specifically, it would be helpful to see the actual code/request you're making, including the namespace ID value, and the output you're getting. (Be sure to redact the access token of course, and any other private information.) Please feel free to &lt;A href="https://www.dropbox.com/developers/contact" target="_self"&gt;open an API ticket&lt;/A&gt; instead if you prefer to share privately.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2019 18:42:53 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/list-folder-does-not-return-recursive-folder-listing/m-p/330772#M19328</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-02-25T18:42:53Z</dc:date>
    </item>
  </channel>
</rss>

