D18904: [FileCopyJob] Clean up after file copy operation is cancelled

Chinmoy Ranjan Pradhan noreply at phabricator.kde.org
Sun Feb 10 17:43:33 GMT 2019


chinmoyr created this revision.
chinmoyr added reviewers: dfaure, dmitrio.
Herald added a project: Frameworks.
Herald added a subscriber: kde-frameworks-devel.
chinmoyr requested review of this revision.

REVISION SUMMARY
  This patch borrows code from D10663 <https://phabricator.kde.org/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 
  later date.

TEST PLAN
  Unit testing and manual testing done.

REPOSITORY
  R241 KIO

BRANCH
  arcpatch-D10663

REVISION DETAIL
  https://phabricator.kde.org/D18904

AFFECTED FILES
  autotests/jobtest.cpp
  autotests/jobtest.h
  src/core/filecopyjob.cpp
  src/core/filecopyjob.h

To: chinmoyr, dfaure, dmitrio
Cc: kde-frameworks-devel, ngraham, michaelh, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20190210/1b07905f/attachment.html>


More information about the Kde-frameworks-devel mailing list