<?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 API Cannot Find Any Files in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-Cannot-Find-Any-Files/m-p/725268#M32041</link>
    <description>&lt;P&gt;I'm just starting out with the Dropbox API and am trying to just see all my files that I had manually uploaded to my account. I enabled all permissions for my access token just to be sure. However, my script below shows that my account is empty. But there are several files uploaded when I view the web ui. Here is my script. Could someone please point me in the right direction?&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;import dropbox

# Initialize a Dropbox client instance
dbx = dropbox.Dropbox('ACCESS_TOKEN')
acct = dbx.users_get_current_account()

def list_files(path=''):
    try:
        result = dbx.files_list_folder(path)
        print(result)
        for entry in result.entries:
            print(entry)
            if isinstance(entry, dropbox.files.FileMetadata):
                share_link = dbx.sharing_create_shared_link_with_settings(entry.path_lower).url
                print(f'{entry.name}: {share_link}')
            elif isinstance(entry, dropbox.files.FolderMetadata):
                list_files(entry.path_lower)  # Recursive call for folders
    except Exception as e:
        print(f'Exception: {e}')

# Call the function to list files and get share links
path = '/production'
list_files(path)&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;</description>
    <pubDate>Mon, 30 Oct 2023 10:03:27 GMT</pubDate>
    <dc:creator>soubriquet</dc:creator>
    <dc:date>2023-10-30T10:03:27Z</dc:date>
    <item>
      <title>API Cannot Find Any Files</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-Cannot-Find-Any-Files/m-p/725268#M32041</link>
      <description>&lt;P&gt;I'm just starting out with the Dropbox API and am trying to just see all my files that I had manually uploaded to my account. I enabled all permissions for my access token just to be sure. However, my script below shows that my account is empty. But there are several files uploaded when I view the web ui. Here is my script. Could someone please point me in the right direction?&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;import dropbox

# Initialize a Dropbox client instance
dbx = dropbox.Dropbox('ACCESS_TOKEN')
acct = dbx.users_get_current_account()

def list_files(path=''):
    try:
        result = dbx.files_list_folder(path)
        print(result)
        for entry in result.entries:
            print(entry)
            if isinstance(entry, dropbox.files.FileMetadata):
                share_link = dbx.sharing_create_shared_link_with_settings(entry.path_lower).url
                print(f'{entry.name}: {share_link}')
            elif isinstance(entry, dropbox.files.FolderMetadata):
                list_files(entry.path_lower)  # Recursive call for folders
    except Exception as e:
        print(f'Exception: {e}')

# Call the function to list files and get share links
path = '/production'
list_files(path)&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;</description>
      <pubDate>Mon, 30 Oct 2023 10:03:27 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-Cannot-Find-Any-Files/m-p/725268#M32041</guid>
      <dc:creator>soubriquet</dc:creator>
      <dc:date>2023-10-30T10:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: API Cannot Find Any Files</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-Cannot-Find-Any-Files/m-p/725435#M32044</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1761443"&gt;@soubriquet&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;I'm just starting out with the Dropbox API and am trying to just see &lt;STRONG&gt;&lt;U&gt;&lt;FONT color="#99CC00"&gt;all my files&lt;/FONT&gt;&lt;/U&gt;&lt;/STRONG&gt; that I had manually uploaded to my account. ...&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;
&lt;SPAN class=""&gt;# Call the function to list files and get share links&lt;/SPAN&gt;
path &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;'&lt;STRONG&gt;&lt;U&gt;&lt;FONT color="#FF0000"&gt;/production&lt;/FONT&gt;&lt;/U&gt;&lt;/STRONG&gt;'&lt;/SPAN&gt;
list_files&lt;SPAN class=""&gt;(&lt;/SPAN&gt;path&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1761443"&gt;@soubriquet&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Hm...&lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@9AD39CA637682E9616FBE31CDAF1B6C4/emoticons/1f914.png" alt=":thinking_face:" title=":thinking_face:" /&gt; Are "all your files" stored in "production" folder? 🧐&lt;/P&gt;&lt;P&gt;If so, you didn't mention any error output encountered or account type in use (some account types may have different roots). If you are still in confusion, post a screenshot of browser view showing uploaded files you're talking about and the full output of your code. Dump also the content of 'acct' (while hiding the personal information).&lt;/P&gt;&lt;P&gt;Hope this gives direction.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2023 12:58:29 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-Cannot-Find-Any-Files/m-p/725435#M32044</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2023-10-30T12:58:29Z</dc:date>
    </item>
  </channel>
</rss>

