Reputation: 43169
I am trying to keep my files updated via a Dropbox synchronisation. The setup:
The array consists of multiple entries, however (for me), a question remains: how do I determine if a file has simply been renamed instead of added to the box? I want to process the files further but want to avoid double entries.
Upvotes: 0
Views: 61
Reputation: 60143
In the general case, Dropbox itself can't distinguish between a rename and a delete+add, so it can't tell you what happened with that precision. You'll need to come up with your own definition for what a rename means to you (e.g. a delete and add close together in time where the file contents are the same) and then use that definition.
Using a hash of the file contents is sufficient for a lot of apps.
Upvotes: 1