Bug 277756 - Cancelling move/copy operation leaves target incomplete
Summary: Cancelling move/copy operation leaves target incomplete
Status: RESOLVED DUPLICATE of bug 125102
Alias: None
Product: kio
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 4.6
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-14 12:37 UTC by laycastle
Modified: 2011-07-17 23:17 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description laycastle 2011-07-14 12:37:39 UTC
+++ This bug was initially created as a clone of Bug #125102 +++

Version:           4.6.5 (using KDE 4.6.5, Gentoo)
Compiler:          gcc version 4.4.5
OS:                Linux (adm64) release 2.6.38-gentoo-r6
Locally
Move file a large file from pathA to pathB
Cancel before completion

Result
The original is left in pathA
In pathB there is an incomplete copy of foobar.

This causes problems in the following scenario.

1) Copy large number of files from flaky CDROM
2) An error causes the process to be interrupted.
3) {lastfile} is incomplete
4) Copy files again, select overwrite
5) Get stuck doing steps 1-4

6) Alternative choice, select skip existing files
7) Repeat until all files are retrieved
[Yes, I had to do that]

But there are now unknown incomplete files. 


Recommendation (for both copy/move):
copy to foobar.part
rename to foobar only upon completion
if user cancels delete foobar.part

Why this way? Even if the computer crashes the user will know that foobar.part is an incomplete file. What happens if the user looks in target directory see the incomplete foobar, assumes the process was complete, deletes original. Also, if something is referring to foobar it will not be able to reference the incomplete foobar.part.
Comment 1 Christoph Feck 2011-07-15 14:29:00 UTC
I don't see it. How is this bug different from bug 125102?
Comment 2 Buntolo 2011-07-15 15:15:49 UTC
(In reply to comment #1)
> I don't see it. How is this bug different from bug 125102?

After 4 years you can't simply "up" a bug.
By the way: in 4 years none has cared of a big thing such this.
Comment 3 Christoph Feck 2011-07-15 18:09:43 UTC

*** This bug has been marked as a duplicate of bug 125102 ***
Comment 4 Dario 2011-07-17 08:22:49 UTC
(In reply to comment #1)
> I don't see it. 

Does your dolphin erase incomplete files?
Comment 5 Christoph Feck 2011-07-17 23:17:14 UTC
Sorry, that was unclear. I meant I don't see the difference between the two (identical) bugs.