From 9a02c040284d30ccf90b1257680e0b5117e10d0f Mon Sep 17 00:00:00 2001 From: albertony <12441419+albertony@users.noreply.github.com> Date: Sat, 7 Sep 2024 13:59:14 +0200 Subject: [PATCH] jottacloud: fix setting of metadata on server side move - fixes #7900 --- backend/jottacloud/jottacloud.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/jottacloud/jottacloud.go b/backend/jottacloud/jottacloud.go index 04e4bca10..8ad457c74 100644 --- a/backend/jottacloud/jottacloud.go +++ b/backend/jottacloud/jottacloud.go @@ -1555,7 +1555,7 @@ func (f *Fs) Move(ctx context.Context, src fs.Object, remote string) (fs.Object, } info, err := f.copyOrMove(ctx, "mv", srcObj.filePath(), remote) - if err != nil && meta != nil { + if err == nil && meta != nil { createTime, createTimeMeta := srcObj.parseFsMetadataTime(meta, "btime") if !createTimeMeta { createTime = srcObj.createTime