<?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: How do I get all files and folders on Dropbox Business account in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-get-all-files-and-folders-on-Dropbox-Business-account/m-p/327144#M19167</link>
    <description>&lt;P&gt;Thanks for the feedback! We appreciate it. I'm sharing this with the team.&lt;/P&gt;
&lt;P&gt;Note that if a Metadata object doesn't contain `path_lower` or `path_display`, it &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder" target="_blank"&gt;indicates&lt;/A&gt; that "the file or folder is not mounted". I.e., it's in a shared folder that isn't currently added to the account, so it doesn't have a path in the account.&lt;/P&gt;
&lt;P&gt;And it sounds like specifically, you'd like the following, so I've enumerated the following feature requests for the team:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;The ability to easily get the total size for a folder's contents&lt;/LI&gt;
&lt;LI&gt;The ability to get the size for a deleted file&lt;/LI&gt;
&lt;/UL&gt;</description>
    <pubDate>Tue, 05 Feb 2019 16:51:25 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2019-02-05T16:51:25Z</dc:date>
    <item>
      <title>How do I get all files and folders on Dropbox Business account</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-get-all-files-and-folders-on-Dropbox-Business-account/m-p/326017#M19112</link>
      <description>&lt;P&gt;I have asked this question in the past and did get answers but I am still struggling to figure this out.&lt;/P&gt;&lt;P&gt;Basically, I want to export the entire structure of the given Dropbox Business account to a local DB. I want to export each and every folder/file to the DB.&lt;/P&gt;&lt;P&gt;Do I list this namespaces and use the namespace id as path to traverse each folder? Would that cover all the folders that are there? How would I de-duplicate the traversed folders? How do I segregate between Private, Shared and Team folders?&lt;/P&gt;&lt;P&gt;Can you recommend an approach and provide some guidance?&lt;/P&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>Wed, 29 May 2019 09:08:13 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-get-all-files-and-folders-on-Dropbox-Business-account/m-p/326017#M19112</guid>
      <dc:creator>rk90</dc:creator>
      <dc:date>2019-05-29T09:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get all files and folders on Dropbox Business account</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-get-all-files-and-folders-on-Dropbox-Business-account/m-p/326132#M19115</link>
      <description>&lt;P&gt;(For anyone else interested, the earlier thread can be found &lt;A href="https://www.dropboxforum.com/t5/API-Support-Feedback/How-do-I-get-unique-listing-of-all-folders-on-a-Dropbox-Business/m-p/321385" target="_blank"&gt;here&lt;/A&gt;.)&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;Do I list this namespaces and use the namespace id as path to traverse each folder?&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Yes, specifically, it sounds like you're referring to doing this by listing all namespaces across the team using&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/teams#team-namespaces-list" target="_blank"&gt;/2/team/namespaces/list&lt;/A&gt;[&lt;A href="https://www.dropbox.com/developers/documentation/http/teams#team-namespaces-list-continue" target="_blank"&gt;/continue&lt;/A&gt;], which is a good way to approach this.&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;Would that cover all the folders that are there?&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Yes, that&amp;nbsp;should cover everything.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;How would I de-duplicate the traversed folders?&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You can use the namespace ID (e.g., "shared folder ID") to de-duplicate entries. These are consistent across users.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;How do I segregate between Private, Shared and Team folders?&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You can use the&amp;nbsp;NamespaceType value (i.e., under&amp;nbsp;NamespaceMetadata.namespace_type returned by&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/teams#team-namespaces-list" target="_blank"&gt;/2/team/namespaces/list&lt;/A&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/teams#team-namespaces-list-continue" target="_blank"&gt;/continue&lt;/A&gt;&lt;SPAN&gt;]) to check the type.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jan 2019 18:50:37 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-get-all-files-and-folders-on-Dropbox-Business-account/m-p/326132#M19115</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-01-30T18:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get all files and folders on Dropbox Business account</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-get-all-files-and-folders-on-Dropbox-Business-account/m-p/326170#M19117</link>
      <description>&lt;P&gt;Thanks for the response!&lt;/P&gt;&lt;P&gt;Does the namespaces_list returns entries for all folders or just the top-level folders only. Listing namespace and checking the namespace_type is pretty straight forward, but as we traverse through the folders it becomes difficult to find out type of the sub-folders.&lt;/P&gt;&lt;P&gt;I list folders recursively, in folder listing response, I see several entries that have sharing_info which can be used to get the shared_folder_id, but I have noticed that when I list member folders, the team_folders the member has access to also gets listed and returns sharing_info. So, in that user's context the team_folder is a shared_folder. How do I deal with this situation? I also found that several folders do not return sharing_info what type of folders those are? member's personal folder?&amp;nbsp;Unmounted folders also don't return info sharing_info I guess.&lt;/P&gt;&lt;P&gt;Also when I list namespace&amp;nbsp;&lt;SPAN&gt;NamespaceMetadata.name is 'Root' for all member folders.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Lastly if the Dropbox Business account I am operating on has a team_space, then what approach should I take to list all files and folders. I want to use a consistent approach across Dropbox accounts (wheteher it has team space or not).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I would appreciate any pointers and suggestions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I would also like to thank you for your help so far. You are a champ!&lt;/SPAN&gt;&lt;/P&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>Wed, 30 Jan 2019 21:39:01 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-get-all-files-and-folders-on-Dropbox-Business-account/m-p/326170#M19117</guid>
      <dc:creator>rk90</dc:creator>
      <dc:date>2019-01-30T21:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get all files and folders on Dropbox Business account</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-get-all-files-and-folders-on-Dropbox-Business-account/m-p/326281#M19124</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;Does the namespaces_list returns entries for all folders or just the top-level folders only.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;The&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/teams#team-namespaces-list" target="_blank" rel="noopener noreferrer"&gt;/2/team/namespaces/list&lt;/A&gt;[&lt;A href="https://www.dropbox.com/developers/documentation/http/teams#team-namespaces-list-continue" target="_blank" rel="noopener noreferrer"&gt;/continue&lt;/A&gt;] endpoints return a list of all of the "namespaces". This will not be a complete list of all folders. Namespaces include&amp;nbsp;team folders, shared folders, team members' home folders, and team members' app folders (but not normal folders insides those folders).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;To then list the contents of any particular folder, you should use &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder" target="_self"&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;], with recursive=true if you want all nested entries as well.&lt;/SPAN&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;in that user's context the team_folder is a shared_folder. How do I deal with this situation?&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;Team folders are very similar to shared folders. I'm not sure I understand your question "How do I deal with this situation?" though. Can you elaborate? What specifically is causing you trouble?&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;several folders do not return sharing_info what type of folders those are?&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If a folder does not have sharing_info, it is not itself a shared folder, nor contained in a shared folder. (E.g., it's a private folder in a member's account.)&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;Unmounted folders also don't return info sharing_info I guess.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Unmounted folders aren't listed by&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder" target="_self"&gt;/2/files/list_folder&lt;/A&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder-continue" target="_blank"&gt;/continue&lt;/A&gt;&lt;SPAN&gt;] anyway.&lt;/SPAN&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;the Dropbox Business account I am operating on has a team_space, then what approach should I take to list all files and folders.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I&amp;nbsp;recommend reviewing the &lt;A href="https://www.dropbox.com/developers/reference/namespace-guide" target="_blank"&gt;Namespace Guide&lt;/A&gt; and &lt;A href="https://www.dropbox.com/developers/reference/content-access-guide" target="_blank"&gt;Content Access Guide&lt;/A&gt;, if you haven't already, as they should offer some useful reference on this.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jan 2019 16:51:51 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-get-all-files-and-folders-on-Dropbox-Business-account/m-p/326281#M19124</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-01-31T16:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get all files and folders on Dropbox Business account</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-get-all-files-and-folders-on-Dropbox-Business-account/m-p/326331#M19125</link>
      <description>&lt;P&gt;I have reviewed&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/reference/namespace-guide" target="_blank" rel="noopener noreferrer"&gt;Namespace Guide&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;and&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.dropbox.com/developers/reference/content-access-guide" target="_blank" rel="noopener noreferrer"&gt;Content Access Guide&lt;/A&gt;. The namespace guide explains the difference between a team space and non-team space accounts, but is listing namespace will include all namespaces (not recursive but top-level) on both types (Team space and non-team space) of accounts?&lt;/P&gt;&lt;P&gt;I am still not clear on the concept of team and shared folders (I have reviewed online resources). If team folders and shared folders both have a shared_folder_id and are almost similar, then why are they identified differenty. Nevertheless, my main&amp;nbsp;objective is&amp;nbsp;to walk through each and every folder recursively and for that I need a list of top-level folders which I assume can be obtained by listing namespace.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jan 2019 20:30:45 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-get-all-files-and-folders-on-Dropbox-Business-account/m-p/326331#M19125</guid>
      <dc:creator>rk90</dc:creator>
      <dc:date>2019-01-31T20:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get all files and folders on Dropbox Business account</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-get-all-files-and-folders-on-Dropbox-Business-account/m-p/326353#M19128</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;listing namespace will include all namespaces (not recursive but top-level) on both types (Team space and non-team space) of accounts?&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Yes,&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/teams#team-namespaces-list" target="_blank" rel="noopener noreferrer noopener noreferrer"&gt;/2/team/namespaces/list&lt;/A&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/teams#team-namespaces-list-continue" target="_blank" rel="noopener noreferrer noopener noreferrer"&gt;/continue&lt;/A&gt;&lt;SPAN&gt;] will list all namespaces for a team, whether or not the team uses the team space configuration.&lt;/SPAN&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;If team folders and shared folders both have a shared_folder_id and are almost similar, then why are they identified differenty.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;While team folders and shared folders are similar and share some properties, there do not behave exactly the same, so they are identified differently. For instance, team folders are shared with the entire team, while shared folders can be shared with arbitrary/specific accounts.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jan 2019 21:57:22 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-get-all-files-and-folders-on-Dropbox-Business-account/m-p/326353#M19128</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-01-31T21:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get all files and folders on Dropbox Business account</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-get-all-files-and-folders-on-Dropbox-Business-account/m-p/326378#M19129</link>
      <description>&lt;P&gt;This means if I have 5 members on Business account and I create a Team folder, then all those 5 members get access to the Team folder. There is no concept of folder permissions on team folders? What I am failing to understand is all users I create in Dropbox Business are team members and they have access to all team folders, then where does this shared folder comes from.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jan 2019 23:53:52 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-get-all-files-and-folders-on-Dropbox-Business-account/m-p/326378#M19129</guid>
      <dc:creator>rk90</dc:creator>
      <dc:date>2019-01-31T23:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get all files and folders on Dropbox Business account</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-get-all-files-and-folders-on-Dropbox-Business-account/m-p/326511#M19133</link>
      <description>&lt;P&gt;Team folders are for sharing content with one's team. You can find &lt;A href="https://www.dropbox.com/help/business/team-folders" target="_blank"&gt;more information on team folders in the help center here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Shared folders can be used to share folders with arbitrary users. You can find &lt;A href="https://www.dropbox.com/help/files-folders/share-with-others" target="_blank"&gt;more information on shared folders in the help center here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 15:22:43 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-get-all-files-and-folders-on-Dropbox-Business-account/m-p/326511#M19133</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-02-01T15:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get all files and folders on Dropbox Business account</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-get-all-files-and-folders-on-Dropbox-Business-account/m-p/327022#M19160</link>
      <description>&lt;P&gt;Whenever I think I have an idea about how I am going to get what I want, I bump into something that makes me wonder if I should really do this project.&lt;/P&gt;&lt;P&gt;I list namespaces and the namespace.name for team member folder is 'Root'. I list folders recursively and there are thousands of deleted files/folders that don't have 'path_display' attribute and I don't know how would I get the size of those deleted files/folders without knowing thier path or an identifier. Then there are&amp;nbsp;several entries in&amp;nbsp;folder list response&amp;nbsp;that do not have 'path_display' attribute. All I see in those entries are (&amp;nbsp;&lt;SPAN class="s1"&gt;{'name': '&amp;lt;item name&amp;gt;', 'parent_shared_folder_id': '&amp;lt;id&amp;gt;, 'id': 'id:&amp;lt;id&amp;gt;'} ).&amp;nbsp; I don't know how am I supposed to construct the absolute path of such entries unless Dropbox expects us to make another request to another endpoint to get the absolute path of such entries.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1"&gt;I have seen poorly designed APIs, but Dropbox APIs are worst. I wonder if the developers knew what they were doing. Dropbox chose not to give an endpoint that can be queried to get the unique&amp;nbsp;listing of all files/folders rather&amp;nbsp;they chose to&amp;nbsp;give something like&amp;nbsp;impersonation where you impersonate each user or an admin and list the same folders and do the sorting yourself. No API to get the size of folder (list folders recursively and get calculate the size). The list goes on.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1"&gt;You guys forward feature requests but those get moved to the trash bin because Dropbox does not want to make things easy.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Feb 2019 23:15:05 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-get-all-files-and-folders-on-Dropbox-Business-account/m-p/327022#M19160</guid>
      <dc:creator>rk90</dc:creator>
      <dc:date>2019-02-04T23:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get all files and folders on Dropbox Business account</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-get-all-files-and-folders-on-Dropbox-Business-account/m-p/327144#M19167</link>
      <description>&lt;P&gt;Thanks for the feedback! We appreciate it. I'm sharing this with the team.&lt;/P&gt;
&lt;P&gt;Note that if a Metadata object doesn't contain `path_lower` or `path_display`, it &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder" target="_blank"&gt;indicates&lt;/A&gt; that "the file or folder is not mounted". I.e., it's in a shared folder that isn't currently added to the account, so it doesn't have a path in the account.&lt;/P&gt;
&lt;P&gt;And it sounds like specifically, you'd like the following, so I've enumerated the following feature requests for the team:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;The ability to easily get the total size for a folder's contents&lt;/LI&gt;
&lt;LI&gt;The ability to get the size for a deleted file&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Tue, 05 Feb 2019 16:51:25 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-get-all-files-and-folders-on-Dropbox-Business-account/m-p/327144#M19167</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-02-05T16:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get all files and folders on Dropbox Business account</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-get-all-files-and-folders-on-Dropbox-Business-account/m-p/327267#M19170</link>
      <description>&lt;P&gt;This is not true, there are several folders that are inside team folders and show up within the team folder on the UI, but when I list those folders via API I don't see `path_display`. Moreover, there are several deleted files/folders in the response that just have `name` but no `path_display` or `path_lower`.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Note that if a Metadata object doesn't contain `path_lower` or `path_display`, it&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder" target="_blank" rel="noopener noreferrer"&gt;indicates&lt;/A&gt;&amp;nbsp;that "the file or folder is not mounted". I.e., it's in a shared folder that isn't currently added to the account, so it doesn't have a path in the account.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I am frustrated because of the disambiguity and unnecessary optional fields in the response. Most importantly if someone was given a task to generate the list of all files/folders on a given Dropbox account, it will take them forever because Dropbox doesn't have an endpoint that can be called to list each and every folder. What Dropbox expects us to do is call `list_folder/{continue}`. Consider 1000 members that have almost identical folders (i.e. a large shared folder shared with all of them). When I list each member's folder recursively I will be unneccesarily listing that same shared folder 1000 times. If I want to skip listing that folder again, then I need to set `recursive=False` and check each folder in response to see if it was listed previously, unnecssary processing. APIs are suppossed to make life easier not difficult.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 00:24:35 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-get-all-files-and-folders-on-Dropbox-Business-account/m-p/327267#M19170</guid>
      <dc:creator>rk90</dc:creator>
      <dc:date>2019-02-06T00:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get all files and folders on Dropbox Business account</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-get-all-files-and-folders-on-Dropbox-Business-account/m-p/327414#M19177</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;there are several folders that are inside team folders and show up within the team folder on the UI, but when I list those folders via API I don't see `path_display`&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Do you mean you're calling for a namespace directly as an admin without a root like this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;curl -X POST https://api.dropboxapi.com/2/files/list_folder \
    --header "Authorization: Bearer &amp;lt;ACCESS_TOKEN&amp;gt;" \
    --header "Dropbox-API-Select-Admin: &amp;lt;ADMIN_USER_ID&amp;gt;" \
    --header "Content-Type: application/json" \
    --data "{\"path\": \"ns:1990893360\"}"

# {
#   "entries": [
#     {
#       ".tag": "folder",
#       "name": "test",
#       "parent_shared_folder_id": "1990893360",
#       "id": "id:hro-cp_zmJAAAAAAAAAACg",
#       "sharing_info": {
#         "read_only": false,
#         "parent_shared_folder_id": "1990893360",
#         "traverse_only": false,
#         "no_access": false
#       }
#     },
#     {
#       ".tag": "folder",
#       "name": "test folder in team folder",
#       "parent_shared_folder_id": "1990893360",
#       "id": "id:hro-cp_zmJAAAAAAAAAADw",
#       "shared_folder_id": "3980274560",
#       "sharing_info": {
#         "read_only": false,
#         "parent_shared_folder_id": "1990893360",
#         "shared_folder_id": "3980274560",
#         "traverse_only": false,
#         "no_access": false
#       }
#     }
#   ],
#   "cursor": "...",
#   "has_more": false
# }&lt;/PRE&gt;
&lt;P&gt;The paths aren't returned because this call isn't rooted anywhere; i.e., there's no root for the paths to be mounted relative to.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instead, you can supply the path root using the 'Dropbox-API-Path-Root' header (from &lt;A href="https://www.dropbox.com/developers/reference/namespace-guide" target="_blank"&gt;the Namespace Guide&lt;/A&gt;), like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;curl -X POST https://api.dropboxapi.com/2/files/list_folder \
    --header "Authorization: Bearer &amp;lt;ACCESS_TOKEN&amp;gt;" \
    --header "Dropbox-API-Select-Admin: &amp;lt;ADMIN_USER_ID&amp;gt;" \
    --header 'Dropbox-API-Path-Root: {".tag": "root", "root": "1990815600"}' \
    --header "Content-Type: application/json" \
    --data "{\"path\": \"ns:1990893360\"}"

# {
#   "entries": [
#     {
#       ".tag": "folder",
#       "name": "test",
#       "path_lower": "/team folder 1/test",
#       "path_display": "/team folder 1/test",
#       "parent_shared_folder_id": "1990893360",
#       "id": "id:hro-cp_zmJAAAAAAAAAACg",
#       "sharing_info": {
#         "read_only": false,
#         "parent_shared_folder_id": "1990893360",
#         "traverse_only": false,
#         "no_access": false
#       }
#     },
#     {
#       ".tag": "folder",
#       "name": "test folder in team folder",
#       "path_lower": "/team folder 1/test folder in team folder",
#       "path_display": "/team folder 1/test folder in team folder",
#       "parent_shared_folder_id": "1990893360",
#       "id": "id:hro-cp_zmJAAAAAAAAAADw",
#       "shared_folder_id": "3980274560",
#       "sharing_info": {
#         "read_only": false,
#         "parent_shared_folder_id": "1990893360",
#         "shared_folder_id": "3980274560",
#         "traverse_only": false,
#         "no_access": false
#       }
#     }
#   ],
#   "cursor": "...",
#   "has_more": false
# }&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 19:47:08 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-get-all-files-and-folders-on-Dropbox-Business-account/m-p/327414#M19177</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-02-06T19:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get all files and folders on Dropbox Business account</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-get-all-files-and-folders-on-Dropbox-Business-account/m-p/327420#M19178</link>
      <description>&lt;P&gt;Yes, I am not supplying the 'with root path' header. What about the deleted files/folders? There are several that don't return the path_display.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 20:08:42 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-get-all-files-and-folders-on-Dropbox-Business-account/m-p/327420#M19178</guid>
      <dc:creator>rk90</dc:creator>
      <dc:date>2019-02-06T20:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get all files and folders on Dropbox Business account</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-get-all-files-and-folders-on-Dropbox-Business-account/m-p/327591#M19187</link>
      <description>&lt;P&gt;Can you share a bit of sample code/output for that case so I can&amp;nbsp;take a look?&amp;nbsp;Thanks in advance!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Feb 2019 16:38:00 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-get-all-files-and-folders-on-Dropbox-Business-account/m-p/327591#M19187</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-02-07T16:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get all files and folders on Dropbox Business account</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-get-all-files-and-folders-on-Dropbox-Business-account/m-p/327621#M19198</link>
      <description>&lt;PRE&gt;for namespace_list in session.post('2/team/namespaces/list'): 
    for namespace in namespace_list: 
        for listing in session.post('2/files/list_folder', headers={'Dropbox-API-Select-Admin': &amp;lt;team_member_id&amp;gt;}, json={'path': f'ns:{namespace[namespace_id]}', 'recursive': True, 'include_deleted': True}):
            for item in listing:
                print(item)&lt;/PRE&gt;&lt;P&gt;Above is an example of the approach I am taking to list all folders. Part of the problem is if a folder is shared with all members, then when I list 'team_member_folders' I am listing the same folder multiple times.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Feb 2019 18:29:57 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-get-all-files-and-folders-on-Dropbox-Business-account/m-p/327621#M19198</guid>
      <dc:creator>rk90</dc:creator>
      <dc:date>2019-02-07T18:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get all files and folders on Dropbox Business account</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-get-all-files-and-folders-on-Dropbox-Business-account/m-p/327640#M19200</link>
      <description>&lt;P&gt;Thanks! The omission of the path on the deleted entries in this case would be for the same reason as mentioned in my previous post yesterday; i.e., without the path root&amp;nbsp;there's no root for the paths to be mounted relative to.&lt;/P&gt;
&lt;P&gt;For shared folders, the shared folder ID will be consistent across users, so you can keep a list of the IDs you've seen already, and skip them when you come across them again.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Feb 2019 19:55:01 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-get-all-files-and-folders-on-Dropbox-Business-account/m-p/327640#M19200</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-02-07T19:55:01Z</dc:date>
    </item>
  </channel>
</rss>

