Hi, i'm working on c# and i can just show the files on the root directory , i want to show all the folders and files inside this folders on the root directory, didn't see anything on the forum, any idea?
Thx
i solved the problem, if anyone wants the code can send it
Hello. I'm newbie here and in c#.
Can you help me too with list folders on dropbox?
Thank you.
To list files and folders in a linked Dropbox account using the official Dropbox .NET SDK, you should use the listFolder and listFolderContinue methods.
There are some simple examples here:
(Note that these are simplified examples. In your actual app, you should make sure to check ListFolderResult.HasMore to see if there are more results to fetch using listFolderContinue.)
I want code, using rest api, how can retrive all the files in dropbox folder
@saravananct143 I see you also opened a new thread for this so we'll follow up there:
https://www.dropboxforum.com/t5/API-support/How-to-List-all-files-in-the-Dropbox-folder-using-Web-Request/m-p/270141#M15956
Please send code on [email address removed by Moderators to align with our Community's Guidelines]
hello
i need to list all files in my dropbox in c# could u help me
thank you
@ahmedcoo For information on how to list all of the files/folders in an account using the Dropbox API in C# via the official Dropbox .NET SDK, please refer to my earlier comment here:
https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/List-ALL-folders-and-files-on-my-dropbox-account/m-p/193107/highlight/true#M8650
To list everything starting at the home folder, you'd want to use the empty string "" as the path, and set recursive to true when first calling ListFolderAsync.
Send me the code for listing files and folders in Dropbox. Louise
@abelmor Exactly how you use the API will on exactly what you're looking to do, so please refer to the information earlier in this thread to see how to configure these calls.
For example, here's a very basic sample of how you can call these methods to print out the entries for everything directly in the root folder for the call:
void HandleEntries(IList<Dropbox.Api.Files.Metadata> entries) { foreach (var entry in entries) { Console.WriteLine(entry); } } var result = await client.Files.ListFolderAsync(path:string.Empty); HandleEntries(result.Entries); while (result.HasMore) { result = await client.Files.ListFolderContinueAsync(result.Cursor); HandleEntries(result.Entries); }