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 565610 - Replacing folder with file from within that folder destroys both.
Replacing folder with file from within that folder destroys both.
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: File and Folder Operations
2.24.x
Other All
: Urgent critical
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-12-25 11:01 UTC by Ivan Baldin
Modified: 2009-02-18 16:07 UTC
See Also:
GNOME target: 2.26.x
GNOME version: 2.23/2.24


Attachments
Show error if overwriting the source (1.32 KB, patch)
2009-02-18 15:14 UTC, Alexander Larsson
none Details | Review

Description Ivan Baldin 2008-12-25 11:01:20 UTC
Please describe the problem:
If folder containing a file both have the same name, and you try replacing the folder with the file, both will be destroyed.

Steps to reproduce:
1. $ mkdir ~/foo
2. $ touch ~/foo/foo
3. Move (or copy) file "foo" from "foo" to home directory using nautilus and choose to replace when dialog pops up.


Actual results:
Both file and folder are destroyed.

Expected results:
The file to survive. Ether to be moved correctly or the operation canceled with an error message.

Does this happen every time?
Yes.

Other information:
Comment 1 Cosimo Cecchi 2008-12-30 09:59:01 UTC
Confirming and setting GNOME target 2.26.x, it's not nice to have data loss.
Comment 2 Alexander Larsson 2009-02-18 15:14:20 UTC
Created attachment 128983 [details] [review]
Show error if overwriting the source
Comment 3 Alexander Larsson 2009-02-18 16:07:13 UTC
commited.