Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
PeterG-TDA
4 years agoNew member | Level 2
Compute content_hash of local folder
Hi, I've implemented content hashing for local files using the instructions found here dropbox content-hash page - very helpful article!
Next I'd like to implement content hashing for folders locally. So I can then compare to a remove Dropbox folder's content_hash (and download or not download a folder accordingly).
What is the best way to generate a content_hash for a folder locally?
- Hash individual files (in the folder) one at a time and then hash the concatenated SHA-256 strings? If so, what would be the order of the files to hash sequentially?
- Can the folder be hashed (rather than each file)? This would be far more efficient!
- Can detailed instructions please be provided?
Thank you very much.
Peter
Dropbox doesn't offer a 'content_hash' or equivalent for entire folders, only files, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.
If you want to verify an entire folder, you'd need to check each individual file in the folder you're interested in verifying.
2 Replies
Replies have been turned off for this discussion
- Greg-DB4 years ago
Dropbox Community Moderator
Dropbox doesn't offer a 'content_hash' or equivalent for entire folders, only files, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.
If you want to verify an entire folder, you'd need to check each individual file in the folder you're interested in verifying.
- PeterG-TDA4 years agoNew member | Level 2
Thanks for letting me know 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!