We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
millticket
3 years agoNew member | Level 2
list_folder continue and get latest cursor are returning deleted items when false.
Trying to figure out why I am getting deleted items returned when my original get_latest_cursor input is:
{
"include_deleted": false,
"include_has_explicit_shared_members": false,
"include_media_info": false,
"include_mounted_folders": true,
"include_non_downloadable_files": true,
"path": "/path",
"recursive": true,
"limit": 100
}
Output is:
"entries": [
{
".tag": "deleted",
"name": "NEB_SHERMAN_MJ_022.jpg",
"path_lower": "/path/filename_022.jpg",
"path_display": "/path/FILENAME_022.jpg"
}
1 Reply
- Здравко3 years agoLegendary | Level 20
millticket, Gooood note! 😉😀
Actually "include_deleted" here is meaningless. The meaning is when you list some folder (using /2/files/list_folder) to be possible ignore already deleted items. When you're going to trace particular change (a change that happens in your path), to be deleted particular file, it has not been deleted before that. So to be able trace it there is no way already deleted to be ignored, otherwise you would skip some deletion of real files. This parameter seems to be just a copy, nothing more (a dummy copy - dis-functional and meaningless).
If there was possible to skip such deleted files, that would be a bug. 🙂
PS: By the way, default value of "include_deleted" is false.
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!