<?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: Dropbox api. not worked foreach (var item in list.Entries.Where(i =&amp;gt; i.IsFolder)) in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-api-not-worked-foreach-var-item-in-list-Entries-Where-i/m-p/717247#M31771</link>
    <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1749050"&gt;@saharin&lt;/a&gt; Thanks for following up. Unfortunately as we cannot reproduce this issue, and this functionality is not actually part of the Dropbox API/SDK itself, I'm afraid I can't offer much insight on this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For reference, the "Where" method is provided by Microsoft, and you can find &lt;A href="https://learn.microsoft.com/en-us/dotnet/api/system.linq.enumerable.where?view=net-7.0" target="_blank"&gt;information on that here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I see you said you're using .NET 5 though, and I believe Microsoft no longer supports that version, so you may want to upgrade that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 28 Sep 2023 13:35:49 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2023-09-28T13:35:49Z</dc:date>
    <item>
      <title>Dropbox api. not worked foreach (var item in list.Entries.Where(i =&gt; i.IsFolder))</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-api-not-worked-foreach-var-item-in-list-Entries-Where-i/m-p/716325#M31735</link>
      <description>&lt;P&gt;I want to use the dropbox api. I use the code from this page -&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/dotnet#tutorial" target="_blank" rel="noopener"&gt;https://www.dropbox.com/developers/documentation/dotnet#tutorial&lt;/A&gt; .&lt;/P&gt;
&lt;P&gt;But in my Visual.Studio throws an error -&lt;BR /&gt;CS1061 "IList&amp;lt;Metadata&amp;gt;" does not contain a definition of "Where", and it was not possible to find an available "Where" extension method that accepts the type "IList&amp;lt;Metadata&amp;gt;" as the first argument (perhaps the using directive or assembly reference was omitted).&lt;BR /&gt;Why doesn 't it recognize WHERE ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Code:&lt;/P&gt;
&lt;P&gt;async Task ListRootFolder(DropboxClient dbx)&lt;BR /&gt;{&lt;BR /&gt;var list = await dbx.Files.ListFolderAsync(string.Empty);&lt;/P&gt;
&lt;P&gt;// show folders then files&lt;BR /&gt;foreach (var item in list.Entries.Where(i =&amp;gt; i.IsFolder))&lt;BR /&gt;{&lt;BR /&gt;Console.WriteLine("D {0}/", item.Name);&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;foreach (var item in list.Entries.Where(i =&amp;gt; i.IsFile))&lt;BR /&gt;{&lt;BR /&gt;Console.WriteLine("F{0,8} {1}", item.AsFile.Size, item.Name);&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2023 12:54:03 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-api-not-worked-foreach-var-item-in-list-Entries-Where-i/m-p/716325#M31735</guid>
      <dc:creator>saharin</dc:creator>
      <dc:date>2023-09-29T12:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox api. not worked foreach (var item in list.Entries.Where(i =&gt; i.IsFolder))</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-api-not-worked-foreach-var-item-in-list-Entries-Where-i/m-p/716432#M31736</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1749050"&gt;@saharin&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; It's something strange - seems like a problem of your environment (Visual Studio in the case).&lt;/P&gt;&lt;P&gt;Try something like following simpler code:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;async Task ListRootFolder(DropboxClient dbx)
{
    var list = await dbx.Files.ListFolderAsync(string.Empty);

    foreach (var item in list.Entries)
    {
        Console.WriteLine("{0} {1,10} {2}", item.IsFolder ? "D-&amp;gt;" : "F-&amp;gt;",
          item.IsFolder ? "" : item.AsFile.Size.ToString(), item.Name); 
    }
}&lt;/LI-CODE&gt;&lt;P&gt;Does this show the same (or some other) error?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2023 22:36:02 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-api-not-worked-foreach-var-item-in-list-Entries-Where-i/m-p/716432#M31736</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2023-09-25T22:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox api. not worked foreach (var item in list.Entries.Where(i =&gt; i.IsFolder))</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-api-not-worked-foreach-var-item-in-list-Entries-Where-i/m-p/716650#M31744</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1749050"&gt;@saharin&lt;/a&gt;&amp;nbsp;I just tried out that original code sample, and it worked for me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you're still having trouble with this, can you let me know the version numbers of each of the following that you're using?&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Visual Studio&lt;/LI&gt;
&lt;LI&gt;.NET Framework&lt;/LI&gt;
&lt;LI&gt;Dropbox .NET package&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Tue, 26 Sep 2023 15:05:51 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-api-not-worked-foreach-var-item-in-list-Entries-Where-i/m-p/716650#M31744</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-09-26T15:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox api. not worked foreach (var item in list.Entries.Where(i =&gt; i.IsFolder))</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-api-not-worked-foreach-var-item-in-list-Entries-Where-i/m-p/716714#M31748</link>
      <description>&lt;P&gt;This ok, thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 18:03:49 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-api-not-worked-foreach-var-item-in-list-Entries-Where-i/m-p/716714#M31748</guid>
      <dc:creator>saharin</dc:creator>
      <dc:date>2023-09-26T18:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox api. not worked foreach (var item in list.Entries.Where(i =&gt; i.IsFolder))</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-api-not-worked-foreach-var-item-in-list-Entries-Where-i/m-p/716715#M31749</link>
      <description>&lt;P&gt;VS - 2019&lt;/P&gt;&lt;P&gt;.NET 5.0&lt;/P&gt;&lt;P&gt;dropbox api 6.37.0&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 18:07:08 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-api-not-worked-foreach-var-item-in-list-Entries-Where-i/m-p/716715#M31749</guid>
      <dc:creator>saharin</dc:creator>
      <dc:date>2023-09-26T18:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox api. not worked foreach (var item in list.Entries.Where(i =&gt; i.IsFolder))</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-api-not-worked-foreach-var-item-in-list-Entries-Where-i/m-p/716718#M31751</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1749050"&gt;@saharin&lt;/a&gt; Can you clarify what you mean when you say "This ok"? Have you resolved this issue?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 18:36:23 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-api-not-worked-foreach-var-item-in-list-Entries-Where-i/m-p/716718#M31751</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-09-26T18:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox api. not worked foreach (var item in list.Entries.Where(i =&gt; i.IsFolder))</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-api-not-worked-foreach-var-item-in-list-Entries-Where-i/m-p/717212#M31769</link>
      <description>&lt;P&gt;Still, no, it does not work, the code that was thrown to me does not cause errors, but the list of cloud storage files does not print.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2023 11:45:24 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-api-not-worked-foreach-var-item-in-list-Entries-Where-i/m-p/717212#M31769</guid>
      <dc:creator>saharin</dc:creator>
      <dc:date>2023-09-28T11:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox api. not worked foreach (var item in list.Entries.Where(i =&gt; i.IsFolder))</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-api-not-worked-foreach-var-item-in-list-Entries-Where-i/m-p/717215#M31770</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1749050"&gt;@saharin&lt;/a&gt;, That's definitely related to your environment and not to Dropbox API/SDK. You should investigate further what's wrong there. 🤷&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1749050"&gt;@saharin&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;..., but the list of cloud storage files does not print.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;It could be wrong expectation. Depending on your environment settings, the console, where output prints out, can stay open after your program finishes or can close immediately (and that's why you cannot see anything). Check this and tune it or run your application (after build) in independent terminal, so it will stay open and you able to see your application result. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2023 12:00:27 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-api-not-worked-foreach-var-item-in-list-Entries-Where-i/m-p/717215#M31770</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2023-09-28T12:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox api. not worked foreach (var item in list.Entries.Where(i =&gt; i.IsFolder))</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-api-not-worked-foreach-var-item-in-list-Entries-Where-i/m-p/717247#M31771</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1749050"&gt;@saharin&lt;/a&gt; Thanks for following up. Unfortunately as we cannot reproduce this issue, and this functionality is not actually part of the Dropbox API/SDK itself, I'm afraid I can't offer much insight on this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For reference, the "Where" method is provided by Microsoft, and you can find &lt;A href="https://learn.microsoft.com/en-us/dotnet/api/system.linq.enumerable.where?view=net-7.0" target="_blank"&gt;information on that here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I see you said you're using .NET 5 though, and I believe Microsoft no longer supports that version, so you may want to upgrade that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2023 13:35:49 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-api-not-worked-foreach-var-item-in-list-Entries-Where-i/m-p/717247#M31771</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-09-28T13:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox api. not worked foreach (var item in list.Entries.Where(i =&gt; i.IsFolder))</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-api-not-worked-foreach-var-item-in-list-Entries-Where-i/m-p/717254#M31772</link>
      <description>&lt;P&gt;there is no console I definitely do not close, I looked through debugging&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2023 13:52:37 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-api-not-worked-foreach-var-item-in-list-Entries-Where-i/m-p/717254#M31772</guid>
      <dc:creator>saharin</dc:creator>
      <dc:date>2023-09-28T13:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox api. not worked foreach (var item in list.Entries.Where(i =&gt; i.IsFolder))</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-api-not-worked-foreach-var-item-in-list-Entries-Where-i/m-p/717257#M31773</link>
      <description>&lt;P&gt;... in addition to Greg's advises: Migration to &lt;A title="Cross platform IDE for C#, F# and more" href="https://www.monodevelop.com/" target="_blank" rel="noopener"&gt;MonoDevelop&lt;/A&gt; may be considered. It's at the same time simplistic and feature rich IDE; ideal for start learning (and not only). Even more: its underlying platform - mono - is much more portable than original .NET! It's officially supported on Mac, Linux, and Windows only, but runs on any popular (or no so popular) OS. Take a look &lt;A title="Windows - Building MonoDevelop" href="https://www.monodevelop.com/developers/building-monodevelop/#windows" target="_blank" rel="noopener"&gt;here&lt;/A&gt; how you can install on Windows.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2023 14:01:36 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-api-not-worked-foreach-var-item-in-list-Entries-Where-i/m-p/717257#M31773</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2023-09-28T14:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox api. not worked foreach (var item in list.Entries.Where(i =&gt; i.IsFolder))</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-api-not-worked-foreach-var-item-in-list-Entries-Where-i/m-p/717276#M31774</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1749050"&gt;@saharin&lt;/a&gt; Also, regarding "does not cause errors, but the list of cloud storage files does not print", are you referring to trying to list the contents without using "Where"? In that case, there are a few things to check:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Are you connected to the correct account that you expect to be accessing?&lt;/LI&gt;
&lt;LI&gt;Are there actually any files/folders in that account? If you're using an app with the "app folder" access type, make sure there are files/folders in the app folder in particular.&lt;/LI&gt;
&lt;LI&gt;What is ListFolderAsync returning? You may want to check the size of list.Entries, for instance. It can be helpful to use the debugger to inspect these values.&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Thu, 28 Sep 2023 14:52:32 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-api-not-worked-foreach-var-item-in-list-Entries-Where-i/m-p/717276#M31774</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-09-28T14:52:32Z</dc:date>
    </item>
  </channel>
</rss>

