<?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: (Python SDK API Help) Some folders are not listing in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Python-SDK-API-Help-Some-folders-are-not-listing/m-p/775046#M33884</link>
    <description>&lt;P&gt;I did not try continue listing, and after implementing this it worked. Thank you!&lt;/P&gt;</description>
    <pubDate>Mon, 03 Jun 2024 17:58:09 GMT</pubDate>
    <dc:creator>mjmt</dc:creator>
    <dc:date>2024-06-03T17:58:09Z</dc:date>
    <item>
      <title>(Python SDK API Help) Some folders are not listing</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Python-SDK-API-Help-Some-folders-are-not-listing/m-p/774641#M33859</link>
      <description>&lt;P&gt;I am writing a helper app with the python sdk to iterate through folders within a team folder and add certain child folders within specific folders that have a name matching a list of names I have.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So far I am able to iterate through the folders and match the specific folders I want, but some of the folders seem to indiscriminately not be selected from my parent folder which makes it impossible for me to automate this task because of the risk of creating redundant folders.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is some of my code:&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;names = [] # contains 100 strings of the folder names I need to match or create a folder for if not matched

# connect to dropbox
dbx = dropbox.Dropbox('access token')

# configure team space
# ref : https://stackoverflow.com/questions/75561322/dropbox-python-api-team-folder-access
root_namespace_id = dbx.users_get_current_account().root_info.root_namespace_id
dbx = dbx.with_path_root(dropbox.common.PathRoot.root(root_namespace_id))

for folder in dbx.files_list_folder('/my/path/', recursive=False).entries:
    # certain folders in here are just not being listed when I check with:
    # print(folder.name)
    for name in names:
        if name in folder.name or folder.name in name:
            match.append(folder)
            # working for the folders that are listed&lt;/LI-CODE&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;why does&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;for folder in dbx.files_list_folder('/my/path/', recursive=False).entries:&lt;/LI-CODE&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;not list every folder in the parent folder?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I initially thought it was only not listing folder when the "Who can access" column was listed as "Parent + others", however it seems to not list folders that are only "Parent" accessible as well.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I should note, there are 852 folders I am trying to query from and the total amount of folders I am getting is 500 from my for loop. Is this a built in constraint?&lt;BR /&gt;&lt;BR /&gt;Any help would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2024 12:03:23 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Python-SDK-API-Help-Some-folders-are-not-listing/m-p/774641#M33859</guid>
      <dc:creator>mjmt</dc:creator>
      <dc:date>2024-06-03T12:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: (Python SDK API Help) Some folders are not listing</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Python-SDK-API-Help-Some-folders-are-not-listing/m-p/774689#M33860</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1843222"&gt;@mjmt&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;As seems, you observe only the first page of your list. Did you try continue listing? Keep in mind that list metadata are provided on pieces and every piece size is NOT guarantead (despite controlable). You have to check for more results waiting and continue when needed. Don't rely that entire list will get back as an only page (in spite possible)!&lt;/P&gt;&lt;P&gt;Hope this claryfies matter.&lt;/P&gt;</description>
      <pubDate>Sat, 01 Jun 2024 10:04:13 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Python-SDK-API-Help-Some-folders-are-not-listing/m-p/774689#M33860</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2024-06-01T10:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: (Python SDK API Help) Some folders are not listing</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Python-SDK-API-Help-Some-folders-are-not-listing/m-p/775003#M33873</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1843222"&gt;@mjmt&lt;/a&gt;&amp;nbsp;Здравко is correct; it appears you are only calling files_list_folder, but that is not guaranteed to return everything. You should implement both &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/api/dropbox.html#dropbox.dropbox_client.Dropbox.files_list_folder" target="_blank"&gt;files_list_folder&lt;/A&gt; and &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/api/dropbox.html#dropbox.dropbox_client.Dropbox.files_list_folder_continue" target="_blank"&gt;files_list_folder_continue&lt;/A&gt;. Refer to the documentation linked there for more information on how to use that.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2024 14:53:54 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Python-SDK-API-Help-Some-folders-are-not-listing/m-p/775003#M33873</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2024-06-03T14:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: (Python SDK API Help) Some folders are not listing</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Python-SDK-API-Help-Some-folders-are-not-listing/m-p/775046#M33884</link>
      <description>&lt;P&gt;I did not try continue listing, and after implementing this it worked. Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2024 17:58:09 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Python-SDK-API-Help-Some-folders-are-not-listing/m-p/775046#M33884</guid>
      <dc:creator>mjmt</dc:creator>
      <dc:date>2024-06-03T17:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: (Python SDK API Help) Some folders are not listing</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Python-SDK-API-Help-Some-folders-are-not-listing/m-p/775047#M33885</link>
      <description>&lt;P&gt;Yes they are correct. I ended up just using the cursor to continue listing and that got all my queries. My program is now up and running &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@D88F213CAFB196B6AB70612B08AD9D31/emoticons/1f601.png" alt=":beaming_face_with_smiling_eyes:" title=":beaming_face_with_smiling_eyes:" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2024 18:00:37 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Python-SDK-API-Help-Some-folders-are-not-listing/m-p/775047#M33885</guid>
      <dc:creator>mjmt</dc:creator>
      <dc:date>2024-06-03T18:00:37Z</dc:date>
    </item>
  </channel>
</rss>

