dropbox / dropbox-api-content-hasher Goto Github PK
View Code? Open in Web Editor NEWCode to compute the Dropbox API's "content_hash"
License: Other
Code to compute the Dropbox API's "content_hash"
License: Other
https://github.com/ncw/rclone/blob/master/backend/dropbox/dbhash/dbhash.go
it implements the go hash interface! MIT license but still go to check with the creator
After checking Dropbox API v2 Java documentation, I could not find any content_hash
field for FileMetaData.
Please see https://dropbox.github.io/dropbox-sdk-java/api docs/v2.1.x/com/dropbox/core/v2/files/FileMetadata.html
Is this still valid, or the content hash was replaced with something else?
How one can check if a local file is the same as the version on server? By using the rev
and serverModified
properties?
Thank you in advance for you explanation!
Just wanted to let you know the content hasher works nicely in the browser with a small change to the packages being used:
- const crypto = require('crypto')
+ import { Buffer } from 'buffer/'
+ import crypto from 'crypto-browserify'
Packages:
npm install buffer
npm install crypto-browserify
That's all I had to change for my Webpack-based app.
Can you publish these to package repositories, like npm for node.js? I want to npm install this as a library dependency, but I can't do that right now.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.