mirror of
https://github.com/OpenListTeam/OpenList.git
synced 2026-03-13 11:20:33 +00:00
fix(webdav/move): fix source file still exist after moving file by webdav (#1979)
This commit is contained in:
@@ -155,6 +155,9 @@ func transfer(ctx context.Context, taskType taskType, srcObjPath, dstDirPath str
|
||||
}
|
||||
t.Base.SetCtx(ctx)
|
||||
err = t.RunWithNextTaskCallback(callback)
|
||||
if err == nil {
|
||||
hasSuccess = true
|
||||
}
|
||||
if taskType == move {
|
||||
task_group.TransferCoordinator.AppendPayload(t.groupID, task_group.SrcPathToRemove(srcObjPath))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user