Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
Ashley B.18
9 years agoNew member | Level 1
https://api.dropbox.com/1/delta?include_media_info=False v1 null entry value
Hi,
I've been using the following endpoint to return a users dropbox folders/files:
https://api.dropbox.com/1/delta?include_media_info=False
I'm getting the following for 8 entries:
["/Folder/fileexample.txt",
null],
The rest are returning metadata as expected ie
["/folder/myfile.xls",
{
"parent_shared_folder_id": "123456",
"rev": "1",
"thumb_exists": false,
"path": "/folder/myfile.xls",
"is_dir": false,
"icon": "page_white_excel",
"read_only": false,
"modifier": null,
"bytes": 0,
"modified": "Thu, 18 Aug 2016 15:53:30 +0000",
"size": "1 bytes",
"root": "dropbox",
"revision": 123456
}],
Do you know why this might be occurring?
Thanks
4 Replies
- Greg-DB9 years ago
Dropbox Community Moderator
Hi Ashley, the null metadata indicates that the item is deleted. You can find more information on this under the "delta entries" section of this endpoint's documentation:
https://www.dropbox.com/developers-v1/core/docs#delta
There's a blog post that shows some logic for this that may be helpful here:
https://blogs.dropbox.com/developers/2013/12/efficiently-enumerating-dropbox-with-delta/
Also, I should note that /1/delta is an API v1 endpoint, which is deprecated. The equivalent functionality in API v2 is /files/list_folder[/continue]:
https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder
https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder-continue
- Ashley B.189 years agoNew member | Level 1
Thanks Gregory. We have updated to v2 but still have an outstanding thread item so still using v1 (https://www.dropboxforum.com/hc/en-us/community/posts/207754083-500-internal-Server-Error-https-api-dropboxapi-com-2-files-list-folder-continue)
Thanks again
- Ashley B.189 years agoNew member | Level 1
Just one other quick question. Why did deleted entries show in the first place? Could the user of been working/deleting files while i started the initial request and moved on to the next cursor?
- Greg-DB9 years ago
Dropbox Community Moderator
Yes, that is one possibility. There may be other cases too, but in any case your app should handle it the same as described in the documentation.
About Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.
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!