Bug 277756

Summary: Cancelling move/copy operation leaves target incomplete
Product: [Frameworks and Libraries] kio Reporter: laycastle
Component: generalAssignee: David Faure <faure>
Status: RESOLVED DUPLICATE    
Severity: normal CC: carlotto1987, cfeck, cippu
Priority: NOR    
Version: 4.6   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

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.