You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
Claudia_1982
7 years agoNew member | Level 2
Issue with ListFolderAsync()
Hello,
I try to use ListFolderAsync() to get first experience with DropboxApi.
On Dropbox I generated my first app called "FirstTest12345" with permission type "App Folder". My first test should show me the content of some folder (e.g. root "" or manually generated others "/test"). When I try this, there is only a result when the folder is empty (Count=0). If theres is some content ListFolderAsync seems to run infinite time.
Here my code:
var list = await client.Files.ListFolderAsync("some path"); //e.g. "" or "/in"
Any help would be appreciated.
Thanks in advance.
- Nothing appears to be wrong with that code. Can you let me know:
- what version number of the .NET SDK you have installed.
- how you're checking that this call runs forever. It should eventually time out if it doesn't complete. Are you sure your program isn't hanging somewhere else? It may be useful to step through with a debugger.
- if you get any other error/output.
- Greg-DBDropbox StaffNothing appears to be wrong with that code. Can you let me know:
- what version number of the .NET SDK you have installed.
- how you're checking that this call runs forever. It should eventually time out if it doesn't complete. Are you sure your program isn't hanging somewhere else? It may be useful to step through with a debugger.
- if you get any other error/output.- Claudia_1982New member | Level 2
You were right. I use VS2017 with .NET 4.7.03056. When I debuged I set the breakpoint at the named function. Then I did one step over (F10) the function to see the content of the "list" parameter. When there was no content in list, which means Count=0, then the debugger stopped at next instruction. When there was content (folders or files) the debugger ran over the next instruction, so it seemed to me, that it hanged at ListFolderAsync....
After setting more breakpoint after ListFolderAsync it stopped in any case and i could see, that the returnvalue contains everything i want.
Thank you very much.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,882 PostsLatest Activity: 3 years agoIf 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 or Facebook.
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!