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.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.