From c749cf8d99702d8d0ca126ffbd2baa94a59cba6c Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Fri, 6 Apr 2018 15:34:56 +0100 Subject: [PATCH] dropbox: fix repeatedly uploading the same files - fixes #2218 In #2134 and dfd0f4c5a458b88857be4a035d910ffc5934f6eb some testing changes got committed by accident which caused this regression. This patch reverts it to how it was before. --- backend/dropbox/dropbox.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/dropbox/dropbox.go b/backend/dropbox/dropbox.go index b27910995..541837707 100644 --- a/backend/dropbox/dropbox.go +++ b/backend/dropbox/dropbox.go @@ -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