We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
saharin
3 years agoExplorer | Level 4
Dropbox api. not worked foreach (var item in list.Entries.Where(i => i.IsFolder))
I want to use the dropbox api. I use the code from this page - https://www.dropbox.com/developers/documentation/dotnet#tutorial .
But in my Visual.Studio throws an error - CS1061 "IList<Metadata>"...
Greg-DB
Dropbox Community Moderator
3 years agosaharin Can you clarify what you mean when you say "This ok"? Have you resolved this issue?
saharin
3 years agoExplorer | Level 4
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.
- Здравко3 years agoLegendary | Level 20
saharin, That's definitely related to your environment and not to Dropbox API/SDK. You should investigate further what's wrong there. 🤷
saharin wrote:..., but the list of cloud storage files does not print.
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. 😉
Good luck.
- saharin3 years agoExplorer | Level 4
there is no console I definitely do not close, I looked through debugging
- Greg-DB3 years ago
Dropbox Community Moderator
saharin 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.
For reference, the "Where" method is provided by Microsoft, and you can find information on that here.
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.
- Здравко3 years agoLegendary | Level 20
... in addition to Greg's advises: Migration to MonoDevelop 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 here how you can install on Windows.
- Greg-DB3 years ago
Dropbox Community Moderator
saharin 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:
- Are you connected to the correct account that you expect to be accessing?
- 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.
- 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.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!