Enable mod time syncing on remotes which can't set mod time on an existing object #348

Closed
ncw opened this Issue Feb 9, 2016 · 0 comments

Projects

None yet

1 participant

@ncw
Owner
ncw commented Feb 9, 2016

Currently remotes which can't set the mod time on an existing object are excluded from mod time syncing.

Can fix this by

  • Make SetModTime return an error.
    • If the remote isn't capable of setting the mod time on an existing object return a sentinel error.
    • Use this sentinel error to make this OK in the sync routines, and the tests.
    • If an update was required and this sentinel error was returned, then upload the entire file.

This would enable

  • b2
  • dropbox (with v2 API)

To do modtime syncing.

@ncw ncw added this to the v1.29 milestone Mar 1, 2016
@ncw ncw closed this in cb22583 Mar 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment