This patch borrows code from D10663.
The destination file is deleted if a copy job is in progress and
delete job is yet to start (in case of move).
One additional change I made is to exclude put operation as there'sDelete the destination file if the copy job was canceled. In case Overwrite flag
a possibility that someone might try to resumwas provided to the job, delete the partial copy at a
later date.part file.