jottacloud: fix setting of metadata on server side move - fixes #7900

This commit is contained in:
albertony 2024-09-07 13:59:14 +02:00 committed by Nick Craig-Wood
parent 918185273f
commit 9a02c04028

View File

@ -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