<?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 to ListFolderAsync to a folder in the root folder? in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-ListFolderAsync-to-a-folder-in-the-root-folder/m-p/762183#M33324</link>
    <description>&lt;P&gt;By default, API calls to the Dropbox API operate in the "member folder" of the connected account ("Student", in your case), not the "&lt;A href="https://help.dropbox.com/teams-admins/team-member/team-space-overview" target="_blank" rel="noopener noreferrer"&gt;team space&lt;/A&gt;". That means that by default, the contents of the team space will not be found.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can configure API calls to operate in the "team space" instead though, in order to interact with files/folders in the team space. To do so, you'll need to set the "Dropbox-API-Path-Root" header. You can find information on how to use this in &lt;A href="https://developers.dropbox.com/dbx-team-files-guide" target="_blank" rel="noopener noreferrer"&gt;the Team Files Guide&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Fri, 05 Apr 2024 17:52:58 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2024-04-05T17:52:58Z</dc:date>
    <item>
      <title>How to ListFolderAsync to a folder in the root folder?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-ListFolderAsync-to-a-folder-in-the-root-folder/m-p/762162#M33322</link>
      <description>&lt;P&gt;Currently, I am trying to connect a WPF C# app to my Dropbox. I have the folders organized in the way you see in the image. Leaving the string empty opens the "Student" folder, however I want my app to list the contents "code" folder. I have tried using "code", "\\code", "/code" but the app always throws a path not found error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure what I am doing wrong, any help is appreciated! If you need any more information, please let me know.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="a.png" style="width: 258px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/45267i9B43A73F782EEC75/image-size/large?v=v2&amp;amp;px=999" role="button" title="a.png" alt="a.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;private async Task&amp;lt;List&amp;lt;FolderViewModel&amp;gt;&amp;gt; FetchFoldersAsync(string accessToken)
{
    var items = new List&amp;lt;FolderViewModel&amp;gt;();

    using (var dbx = new DropboxClient(accessToken))
    {
        var list = await dbx.Files.ListFolderAsync("");

        MessageBox.Show(list.Entries.ToString());

        foreach (var item in list.Entries)
        {
             BitmapImage thumbnail = null;

             if (!item.IsFolder)
             {
                  thumbnail = await FetchThumbnailAsync(dbx, item.PathDisplay);
              }

              items.Add(new FolderViewModel
              {
                   Name = item.Name,
                   Thumbnail =
                   thumbnail ?? new BitmapImage(new 
                   Uri("pack://application:,,,/Resources/Images/folder-icon.png", 
                   UriKind.RelativeOrAbsolute)),
               });
          }
     }
     return items;
}&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 05 Apr 2024 16:34:47 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-ListFolderAsync-to-a-folder-in-the-root-folder/m-p/762162#M33322</guid>
      <dc:creator>cristpol95</dc:creator>
      <dc:date>2024-04-05T16:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to ListFolderAsync to a folder in the root folder?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-ListFolderAsync-to-a-folder-in-the-root-folder/m-p/762183#M33324</link>
      <description>&lt;P&gt;By default, API calls to the Dropbox API operate in the "member folder" of the connected account ("Student", in your case), not the "&lt;A href="https://help.dropbox.com/teams-admins/team-member/team-space-overview" target="_blank" rel="noopener noreferrer"&gt;team space&lt;/A&gt;". That means that by default, the contents of the team space will not be found.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can configure API calls to operate in the "team space" instead though, in order to interact with files/folders in the team space. To do so, you'll need to set the "Dropbox-API-Path-Root" header. You can find information on how to use this in &lt;A href="https://developers.dropbox.com/dbx-team-files-guide" target="_blank" rel="noopener noreferrer"&gt;the Team Files Guide&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2024 17:52:58 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-ListFolderAsync-to-a-folder-in-the-root-folder/m-p/762183#M33324</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2024-04-05T17:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to ListFolderAsync to a folder in the root folder?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-ListFolderAsync-to-a-folder-in-the-root-folder/m-p/762248#M33326</link>
      <description>&lt;P&gt;Thanks a lot for your response! I applied this to my project, I am now able to connect to the "code" folder.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Apr 2024 01:43:18 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-ListFolderAsync-to-a-folder-in-the-root-folder/m-p/762248#M33326</guid>
      <dc:creator>cristpol95</dc:creator>
      <dc:date>2024-04-06T01:43:18Z</dc:date>
    </item>
  </channel>
</rss>

