Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
neunygph
9 years agoExplorer | Level 4
Has_more value from list_folder enpoint
I have been getting files from "//api.dropboxapi.com/2/files/list_folder" endpoint but I never get any "has_more" value is true from the response, even with a folder with more than 300 items.
1.What's the mininum number of item in a folder/directory in order to get a has_more = true ?
2. With has_more = false, but I still get cursor value and I thought we only get cursor value to get next available items and only when has_more = true. Do we use cursor value for any other purpose beside getting next available items ?
Thanks,
1. This is subject to change, so don't rely on this number, but it's generally 1000-2000 files.
2. Yes, even when has_more=false, it's best to store the returned cursor returned by /2/files/list_folder. You can then call /2/files/list_folder/continue later once changes do occur, in order to get information on what (and only what) changed. You can use /2/files/list_folder/longpoll or webhooks to find out when changes occur.
2 Replies
Replies have been turned off for this discussion
- Greg-DB9 years ago
Dropbox Community Moderator
1. This is subject to change, so don't rely on this number, but it's generally 1000-2000 files.
2. Yes, even when has_more=false, it's best to store the returned cursor returned by /2/files/list_folder. You can then call /2/files/list_folder/continue later once changes do occur, in order to get information on what (and only what) changed. You can use /2/files/list_folder/longpoll or webhooks to find out when changes occur.
- neunygph9 years agoExplorer | Level 4
Oh I see, thanks Greg.
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!