After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 403652 - Canceled-Copy should not left incomplete files
Canceled-Copy should not left incomplete files
Status: RESOLVED OBSOLETE
Product: nautilus
Classification: Core
Component: File and Folder Operations
3.22.x
Other All
: Normal normal
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
: 389828 693528 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2007-02-02 17:39 UTC by spam
Modified: 2021-06-18 15:51 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
Fixes this bug. (2.38 KB, patch)
2013-05-08 14:49 UTC, M S SURAJ
rejected Details | Review
Cancel Paste Operation (2.71 KB, patch)
2013-12-24 14:06 UTC, Kévin THIERRY
rejected Details | Review

Description spam 2007-02-02 17:39:36 UTC
When the copying of a file is interrupted (by the user or by some error) an incomplete file is left of the target device. It is not possible to detect that this file is corrupted at first glance.
Maybe it would be wiser to give the target file a temporary name (like foobar.ext.copying) and rename it after completion. So it would be easy to spot incomplete files, when copying the interupted folder again auto-skip would not skip the incomplete file and other applications wouldn't be able to access the file.
Furthermore nautilus should try to remove the partial file when the copying is canceled by the user (or if possible, when it is canceled because of an error).
Comment 1 António Fernandes 2013-03-17 17:54:33 UTC
*** Bug 693528 has been marked as a duplicate of this bug. ***
Comment 2 M S SURAJ 2013-05-08 14:49:33 UTC
Created attachment 243594 [details] [review]
Fixes this bug.

This patch appends "_unfinished" to URI of files being copied/moved. Once copied the file is renamed back to its original name.
This change is not done in case of overwrite operation.
Also, in case of error/cancel, the incomplete file is deleted.
Comment 3 Leonardo Donelli 2013-06-03 17:50:08 UTC
Any news on this bug?
Comment 4 Kévin THIERRY 2013-12-24 13:54:36 UTC
Review of attachment 243594 [details] [review]:

Works fine. Tested on the upstream branch and on Nautilus 3.8.X.
Comment 5 Kévin THIERRY 2013-12-24 14:06:14 UTC
Created attachment 264843 [details] [review]
Cancel Paste Operation

This is  M S SURAJ patch with slight modifications:
- add a better title
- integrate M S SURAJ message as commit message
- remove 4 useless spaces
- rename patch file
Comment 6 Carlos Soriano 2016-03-01 15:37:11 UTC
Thanks for the patch, sorry for so late review, I'm discussing this approach with designers.
Comment 7 Carlos Soriano 2016-10-04 18:58:37 UTC
Review of attachment 264843 [details] [review]:

Hey, thanks for the work on this!
However I think this is the wrong approach.
The problem with this is that display name actually renames the file too, which makes me afraid it's going to introduce corner cases where this can fail more than it worth.
For example, changing the display name actually triggers a changed signal in the nautilus cache, which in the end is connected to all the views of nautilus. That can cause the operation confuse what was the real file that was being operated.

The right approach it's to filter the files that are currently in an operation, and display some different widget, rather than modifying the actual filesystem.
For that, we need the operations rework, so it's not doable right now.
But we have planned to have it done for the next year.
Comment 8 Carlos Soriano 2016-10-04 18:59:02 UTC
Review of attachment 243594 [details] [review]:

rejected similarly to the previous one
Comment 9 Strangiato 2017-08-18 16:12:06 UTC
Any progress? This issue is not solved in nautilus 3.26 beta.
Comment 10 Strangiato 2017-09-01 22:27:04 UTC
duplicate
https://bugzilla.gnome.org/show_bug.cgi?id=389828
Comment 11 Alexandre Franke 2017-09-01 22:28:20 UTC
*** Bug 389828 has been marked as a duplicate of this bug. ***
Comment 12 André Klapper 2021-06-18 15:51:53 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org.
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version of Files (nautilus), then please follow
  https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines
and create a new ticket at
  https://gitlab.gnome.org/GNOME/nautilus/-/issues/

Thank you for your understanding and your help.