Skip to content

Commit d8417e0

Browse files
authored
fix(webdav/move): fix source file still exist after moving file by webdav (OpenListTeam#1979)
1 parent 02aec71 commit d8417e0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/fs/copy_move.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,9 @@ func transfer(ctx context.Context, taskType taskType, srcObjPath, dstDirPath str
155155
}
156156
t.Base.SetCtx(ctx)
157157
err = t.RunWithNextTaskCallback(callback)
158+
if err == nil {
159+
hasSuccess = true
160+
}
158161
if taskType == move {
159162
task_group.TransferCoordinator.AppendPayload(t.groupID, task_group.SrcPathToRemove(srcObjPath))
160163
}

0 commit comments

Comments
 (0)