2

How would I go about detecting if a file changed, using Dropbox's python API? I can't simply check the file on disk because it won't be updated if it's in use.

1

1 Answer 1

2

The best way to do this would be to use the files hash that you get from the Metadata call of the API. You should then store this hash locally.

The Metadata API call can also take a metadata parameter which will make it return a 304 (Not Modified) status if the file has not changed. (more info: https://www.dropbox.com/developers/reference/api#metadata)

But this method still requires you to poll the API constantly.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.