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's
a possibility that someone might try to resume the partial copy at a