jottacloud: fix setting of metadata on server side move - fixes #7900
Some checks are pending
Docker beta build / Build image job (push) Waiting to run

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) 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") createTime, createTimeMeta := srcObj.parseFsMetadataTime(meta, "btime")
if !createTimeMeta { if !createTimeMeta {
createTime = srcObj.createTime createTime = srcObj.createTime