dropbox: fix repeatedly uploading the same files - fixes #2218

In #2134 and dfd0f4c5a4 some testing
changes got committed by accident which caused this regression.

This patch reverts it to how it was before.
This commit is contained in:
Nick Craig-Wood 2018-04-06 15:34:56 +01:00
parent 92cfb57fbd
commit c749cf8d99

View File

@ -836,7 +836,7 @@ func (o *Object) SetModTime(modTime time.Time) error {
// Dropbox doesn't have a way of doing this so returning this
// error will cause the file to be deleted first then
// re-uploaded to set the time.
return fs.ErrorCantSetModTime
return fs.ErrorCantSetModTimeWithoutDelete
}
// Storable returns whether this object is storable