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 48085 - replacing a directory overwrites (ala Macintosh) instead of merging (ala Windows)
replacing a directory overwrites (ala Macintosh) instead of merging (ala Wind...
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: File and Folder Operations
2.5.x
Other Linux
: Normal enhancement
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
: 46310 48372 71791 95585 95723 97190 114766 120946 121356 130160 134993 136055 140386 141763 143761 149060 150428 151414 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2001-04-16 17:49 UTC by Christian Meyer
Modified: 2005-04-11 21:14 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
Proposed patch to gnomevfs to implement underlying merge of dirs. The patch for nautilus will be soon. (8.16 KB, patch)
2004-03-17 00:23 UTC, Nickolay V. Shmyrev
none Details | Review
Updated patch, fixed bugs, added test implementation (10.34 KB, patch)
2004-04-10 13:16 UTC, Nickolay V. Shmyrev
none Details | Review

Description Christian Meyer 2001-09-10 01:18:27 UTC
When moving a DIR with the name 'foo' to another DIR called '/test/foo' it
doesn't merge it with the destination DIR, it rather deletes the content and
replaces it with the source DIR. This is MacOS-like style. Maybe you should let
choose the users whether using the Windows or Mac style.



------- Additional Comments From darin@bentspoon.com 2001-04-16 16:11:12 ----

gmc and many other file managers imitate the Windows style, where dropping a
folder on top of an existing folder merges the contents of the two folders.

We on the Nautilus team were so used to the Macintosh style, we didn't even
notice this issue.

This can be a really bad thing, because a user who's accustomed to the Windows
way of doing things can lose a lot of files if they misunderstand the
"overwrite" confirmation dialog. That's how chrisime ran into this!



------- Additional Comments From pavel@eazel.com 2001-04-25 15:19:31 ----

merging instead of overwriting during a confilct is tricky because it requires a
way more complicated preflight.

A merge can produce unexpected messy hirerachies to some users with a mix of new
and old files. If we do this, we should probably offer the option to merge or
replace in the alert that warns about the conflict.

A partial solution to this could be to move replaced items to the Trash instead
of nuking them on the spot.



------- Additional Comments From snickell@stanford.edu 2001-07-23 00:32:27 ----

Taking bugs previously assigned to Pavel, assigning them to myself. Will parse
them out at my leisure , but many are GnomeVFS bugs we should look at for 2.0



------- Bug moved to this database by unknown@bugzilla.gnome.org 2001-09-09 21:18 -------

The original reporter (chrisime@uni.de) of this bug does not have an account here.
Reassigning to the exporter, unknown@bugzilla.gnome.org.

Comment 1 John Fleck 2002-01-05 04:25:33 UTC
Changing to "old" target milestone for all bugs laying around with no milestone set.
Comment 2 Dave Bordoley [Not Reading Bug Mail] 2002-03-29 08:26:51 UTC
*** Bug 71791 has been marked as a duplicate of this bug. ***
Comment 3 Luis Villa 2002-03-29 19:46:38 UTC
Seth: should this be reassigned to naut-maintainers?
Comment 4 Dave Bordoley [Not Reading Bug Mail] 2002-03-31 23:12:46 UTC
*** Bug 48372 has been marked as a duplicate of this bug. ***
Comment 5 Luis Villa 2002-07-08 21:30:15 UTC
Fixing the keyword so that others can comment.
Comment 6 Daniel Borgmann 2002-07-09 00:19:53 UTC
Thanks Luis! ;)

I wanted to add that I recently lost /usr/lib and /usr/bin because of
this behaviour with Nautilus 2.0. It wasn't critical for me because I
had nothing special installed (it just took me about two days to
recompile all important software, including Gnome 2 and Nautilus 2
ironically ;)) but it could have been critical with a little bit of
bad luck. So I would rather rate this as "critical" than as
"enhancement". Copy and Move actions shouldn't really delete files,
only overwrite (because that's what it asks for).
Comment 7 Dave Bordoley [Not Reading Bug Mail] 2002-10-14 14:10:04 UTC
*** Bug 95723 has been marked as a duplicate of this bug. ***
Comment 8 Dave Bordoley [Not Reading Bug Mail] 2002-10-14 14:11:32 UTC
*** Bug 95585 has been marked as a duplicate of this bug. ***
Comment 9 Jeff Waugh 2002-10-14 14:17:32 UTC
Ooops, didn't recognise the summary when I lodged my similar bug.
Please see #95585 for some suggestions / discussion. I sugggest we
simply move to "Windows-style" by default, as it's the safest bet, and
I feel, the most understandable behaviour.
Comment 10 David Fallon 2002-10-16 00:22:59 UTC
fixing qa contact.
Comment 11 Dave Bordoley [Not Reading Bug Mail] 2002-10-30 03:06:40 UTC
*** Bug 97190 has been marked as a duplicate of this bug. ***
Comment 12 mwehner 2003-09-30 00:59:24 UTC
*** Bug 120946 has been marked as a duplicate of this bug. ***
Comment 13 mwehner 2003-09-30 01:00:44 UTC
*** Bug 46310 has been marked as a duplicate of this bug. ***
Comment 14 mwehner 2003-10-12 16:06:58 UTC
*** Bug 121356 has been marked as a duplicate of this bug. ***
Comment 15 mwehner 2003-10-12 16:07:44 UTC
Adding GNOMEVER2.4, GNOMEVER2.5 keywords.
Comment 16 mwehner 2003-10-16 13:59:54 UTC
*** Bug 114766 has been marked as a duplicate of this bug. ***
Comment 17 Richard Ferguson 2003-11-03 12:00:53 UTC
Has any progress been made on this topic?  I am running nautilus 2.4.0
and just nuked a bunch of files because of this bug!  

From the comments above, this has been around for close to a year and
a half and nobody done anything yet?  I use gnome at home and work but
I am really happy I stumbled across this at home and not work.  If I
had to tell my boss I just lost a load of work because of my linux
filemanager it wouldn't have looked very good at all... please someone
do something about this!  
Comment 18 Martin Wehner 2004-01-01 19:00:36 UTC
*** Bug 130160 has been marked as a duplicate of this bug. ***
Comment 19 Matthew Gatto 2004-02-21 09:53:06 UTC
*** Bug 134993 has been marked as a duplicate of this bug. ***
Comment 20 Matthew Gatto 2004-02-21 11:01:25 UTC
Still in 2.5, updating Version, Keywords, and Summary fields
Comment 21 Matthew Gatto 2004-03-04 03:13:00 UTC
*** Bug 136055 has been marked as a duplicate of this bug. ***
Comment 22 Martijn Vernooij 2004-03-04 15:30:39 UTC
Perhaps nautilus could suggest a different name for the folder if
merging is too difficult.
Comment 23 Nickolay V. Shmyrev 2004-03-17 00:23:06 UTC
Created attachment 25704 [details] [review]
Proposed patch to gnomevfs to implement underlying merge of dirs. The patch for nautilus will be soon.
Comment 24 Luis Villa 2004-04-08 21:51:14 UTC
Comment on attachment 25704 [details] [review]
Proposed patch to gnomevfs to implement underlying merge of dirs. The patch for nautilus will be soon.

I'm marking this 'accepted-commit after freeze' since BLOCKED_BY_FREEZE was set
by alex. Alex, if we're miscommunicating on the meaning of the keyword, let me
know.
Comment 25 Nickolay V. Shmyrev 2004-04-10 13:16:11 UTC
Created attachment 26544 [details] [review]
Updated patch, fixed bugs, added test implementation
Comment 26 Martin Wehner 2004-04-18 13:21:07 UTC
*** Bug 140386 has been marked as a duplicate of this bug. ***
Comment 27 Djamé 2004-05-03 17:40:46 UTC
I was so upset because I lost at least one week of works, I couldn't figure out
how it happened and now I see that this bug has been openned in 2001 and now I'm
even more upset..
You, nautilus developpers should know that most of gnome user are not switching
from mac os to linux, they're switching from windows to linux and more important
from gnome 1.x to gnome 2.x
in gnome 1.x the filemanager of choice was gmc who had the same behaviour as its
text counterpart, mc, so copying a rep into one other has for effect to upgrade
the files in there and not replace them and not REPLACING them..
now, i'm using nautilus 2.4.10 and I'm all screwed because you don't even
consider people do real works here.......

I'm sorry if I'm offending some who really tried to make a cool filemanager but
how I'm suppose to react when even in your own paradygm you're not consistant ?
how I'm suppose to react when I lost really, really, really important work
because I trusted a supposed non beta version of a filemanager ?


I'm so screwed, I almost want to kill myself for not having been paranoïd as usual 
Comment 28 Richard Kinder 2004-05-04 06:32:54 UTC
*** Bug 141763 has been marked as a duplicate of this bug. ***
Comment 29 Matthew Gatto 2004-05-10 06:37:26 UTC
There should probably be some kind of warning as long as the Mac style
"overwrite" behavior is used, such as "WARNING - /full/path/to/target/directory
and all of it's contents will be permanently deleted by this operation", so that
there is no confusion as to whether it will merge or overwrite the target directory.
Comment 30 Djamé 2004-05-10 14:13:23 UTC
I don't get it : why is that so hard to just have a dialog box with the exact
same behaviour than midnight commander :
"Carrefull source folder and destination folder have the same name !!
would you like to :
replace | update | cancel 

is that SO f...g hard or is there something against that in the gnome zealotry
handbook ?

Djamé
ps : is not a matter of confusion, is a matter of what the user except after 4
years of gnome 1.4 and gmc as filemanager, don't even mention those coming from
windows...
reps : I check, in mac os 8, the new folder has a -1 attached to it's name
instead of replacing anything
Comment 31 Chris Turchin 2004-05-10 14:32:43 UTC
Djamé is right: this needs to be addressed. 

The number of comments on this bug alone should speak for that. 

And it is a situation that leads to irreversible and possibly catastrophic data 
loss, not just a cosmetic defect related to whether I am used to a Mac or a 
Windoze environment....

That is the status of the path from 2004-04-10? 

Comment 32 Djamé 2004-05-10 14:53:05 UTC
Do you know why the patch someone has already adressed has not been included
into the main tree ?


Comment 33 Martin Wehner 2004-06-05 12:46:25 UTC
*** Bug 143761 has been marked as a duplicate of this bug. ***
Comment 34 Djamé 2004-06-05 13:17:54 UTC
I still can't believe that no one care.... is there any reason to not include
the patch that had been added here some years ago ? is there any reason except
the whole FALSE "mac did it this way", that's not true in my powerbook with mac
os 8.1 , when you copy a rep A into rep A in another directory, the new one is
copied with an indice added to its name...............
Comment 35 Stefan Schwandter 2004-06-05 13:47:32 UTC
... which still doesn't look very useful to me, although it's at least safer for
you data. I want to be able to merge two directories in the file browser! :-)
Even (command line) midnight commander does this by default.
Comment 36 Mantas Kriaučiūnas 2004-06-10 11:20:02 UTC
I think severity of this bug should be critical, because this couses a loss of data
Also PATCH keyword should be added to this bug.
Btw, I noticed, that nautilus developers doesn't care about compability with older versions, for example like in this bug with people, that used gnome1x with gmc, another example is going to spatial mode without user-friendly way to change to previous browser behaviour.
Comment 37 Andre Schaefer 2004-07-02 08:53:44 UTC
I have lost some data too, by dragging the contents of a tarball with eclipse
plugins to my eclipse installation, leaving me with a destroyed eclipse without
any plugins excet the new ones.

I first thought that is a file-roller regression (extract does the right thing,
only DnD did it so stupidly) - until I dragged to a Rox filer window, which
worked nicely.

I think the rox filer should be inspected for a sane baseline implementation of
intuitive behaviour. Maybe it's dialog seems a bit technical, but it makes very
clear what's happening.

Until Gnome 2.6 I used rox as default file manager, I was very happy when the
spatial paradigm made me feel comfortable with nautilus as well, and I liked its
VFS features. But this Bug is scary, so i consider switching back, until it is
closed.
Comment 38 Djamé 2004-07-05 16:52:49 UTC
Seriously, don't waste your time putting bug report in this bug, the patch
existed for 2 ou 3 years, and for some obscurs reason it has not been
included...
I checked every changelog,and I have never seen any mention of it...

Comment 39 Vincent Noel 2004-07-20 18:32:44 UTC
Nautilus operates on files through gnome-vfs, so this is actually a bug in
gnome-vfs. According to gnome-vfs changelog, this behavior has been fixed on
HEAD (folders are now merged instead of overwritten).

See also http://lists.gnome.org/archives/gnome-vfs-list/2004-July/msg00018.html
Comment 40 Olav Vitters 2004-08-02 15:37:19 UTC
*** Bug 149060 has been marked as a duplicate of this bug. ***
Comment 41 Vincent Noel 2004-08-18 14:52:11 UTC
*** Bug 150428 has been marked as a duplicate of this bug. ***
Comment 42 Olav Vitters 2004-08-30 21:43:01 UTC
*** Bug 151414 has been marked as a duplicate of this bug. ***
Comment 43 Sebastien Bacher 2005-04-09 23:25:34 UTC
*** Bug 172997 has been marked as a duplicate of this bug. ***
Comment 44 Djamé 2005-04-10 02:25:49 UTC
I can't believe that !!!!!!!!!!!!!!

One year later since my bug reports, two patchs have been proposed and this
fucking bug still exists ?

that's the reason I never used nautilus to copy files...

for me it's just a super xv... nothing more...

I'm disgusting. Reallly....

it's not nautilus fault, it's the gnome-vfs one..
I'm sorry but we, user of gnome desktop, don't care about which layer is
responsible...........


by the way for people who want to use a normal filemanager
I suggest gnome commander 1.1.6 (like mc but graphical)
Comment 45 Vincent Noel 2005-04-10 17:48:28 UTC
If you check the bug status and comment #39, you will see that this fucking bug
is actually fixed. And this since last july.
Comment 46 Djamé 2005-04-11 16:15:35 UTC
Yes I checked and it's still here
look, here are my two directory structures

[dse@infocom-dse tmp]$ tree test/
test/
`-- 1
    |-- 2
    |   |-- 3
    |   |   |-- 0.txt
    |   |   `-- 10.txt
    |   `-- 4
    |       `-- kk.txt
    `-- 3
        |-- 5
        `-- 6

[dse@infocom-dse tmp]$ tree test2
test2
`-- 1
    |-- 2
    |   |-- 3
    |   `-- 4
    `-- 3
        |-- 5
        |   `-- 4.txt
        `-- 6
            |-- 1.txt
            `-- 3.txt
	    
	    
	    
copy test/1 on test/2 using nautilus
	[dse@infocom-dse tmp]$ tree test2
test2
`-- 1
    |-- 2
    |   |-- 3
    |   |   |-- 0.txt
    |   |   `-- 10.txt
    |   `-- 4
    |       `-- kk.txt
    `-- 3
        |-- 5
        `-- 6
    
I'm using mandrake 10.1, using gnome2.6
nautilus-2.6.3-10mdk
libnautilus2-2.6.3-10mdk

gnome-vfs2-2.6.2-7mdk
libgnome-vfs2_0-2.6.2-7mdk


So I was using  (I don't count gnome1.x) gnome 2.4 on a mandrake 9.2, still
gnome2.4 with mandrake 10.0 and now gnome 2.6 with mandrake 10.1

I installed my distro yesterday, I applied all the updates and now this bug is
still here except now there's an alert box with only two option "cancel|replace"
why there's no a third one, as gmc or mc, such as "cancel|replace|merge"


you're going to tell me I should have to get the last packages from gnome tree,
install everything by hand and stuff... but I passed the age where I found it
fun to compile everything every 2 months.... Even the slackware maintener has
given up getting gnome compile by hand, he dropped out the official support for
this...


so tell me again, it's fixed since last july. In my mind it was fixed since 2001
when someone send a patch.


Djamé
ps : <french> en plus, si un type a ce bug le 9 avril 2005 comment peut on dire
que c'est fixé ? moi je le vis en live, lui aussi et vous, vous balayez ça d'un
revers de la main extremement méprisant. du style, "le patch est dans le cvs
alors c fixé, va te faire ... connard," t'as qu'à prendre ton patch, le diff et
tout recompiler toi meme. Ca sert à quoi de proposer un environnement de travail
supposé simple d'emploi si par ailleurs on doit se coltiner une galére sans nom
pour recompiler sans se planter tout ces putains de packages ???
j'hallucine....
et je parie que vous allez me dire "si t'es pas content, t'as qu'à utiliser
windows/kde/mac os X", on fait ça gratis donc t'as rien à dire....."
</french>

sorry for non french readers but sometimes it's good to express his feeling in
our own tong....
Comment 47 Vincent Noel 2005-04-11 16:44:29 UTC
This bug was fixed last july in gnome-vfs, so the first version of gnome-vfs to
have this bug fixed was the 2.7.4. This bug was therefore fixed in the stable
release of gnome 2.8, which was out in september 2004. I just tried to follow
the steps you did (with the test1 and test2 folder), and the directories are
merged and not overwritten.

I understand your frustration in running into this bug over and over again, but
unfortunately there is now way for the gnome developers to go back and fix bugs
in every version of gnome. 

About the french part of your answer, please note that nobody insulted you
anywhere. Just out of curiosity, where is the patch that was there since 2001 ?
Comment 48 Sebastien Bacher 2005-04-11 17:31:11 UTC
this bug is fixed since GNOME 2.8, if you want to rant, why not doing it on the
french mandrake's bugzilla ? The bug is due to the Mandrake version beeing
outdated. Nobody asks you to patch anything, just bug you distribution to get a
patched package or use any other distribution with GNOME 2.8 or 2.10.
Comment 49 Djamé 2005-04-11 21:02:16 UTC
if this bug is fixed since gnome 2.8 why does bug
http://bugzilla.gnome.org/show_bug.cgi?id=172997 exist ?

also, it's pretty rude to say it's the distro fault because it's outdated, I'm
sorry but mandrake 10.1 is less than 6 months old and I don't think a lot of
mainstream distro have already gnome 2.8 or gnome 2.10.. People just cannot
update their all system every 6 months....
in the matter of the patch I was refered too, I saw it on a gnome devel mailing
list  when i first digged everywhere to understand how I lost 1 chapter of my
thesis. I looked in bugzilla and I can't even find my own report about the subject.

One last word to apologize if my words seemed to be rude, it's just too anoying
to lost datas, time and faith when using a desktop I really like. This is the
problem with gnome, it's always like "so clooooooooooosed" from being really usable.
<HS>one example ? I used nautilus 2.4 to access network files and once I get the 
right dir, I types my login and password as foo:bar@smb...
now with this spacial stuff.. I have something to browse the network but nothing
to ask the password, even if I click on a rep and then hit ctrl+L, the url of
the dir didn't even appear on the field (just to get our life easier, isn't the
whole interest of a desktop metaphor ?)...
so one more time... so cloooooooooooose</HS>

Comment 50 Martin Wehner 2005-04-11 21:14:30 UTC
It's because bug 172997 is not really a dup of this one.
If I read it correctly it's about:
a) a file can still overwrite a folder or vice versa (you can't merge the two
after all)
b) files/folders that get replaced during a merge are deleted instead of trashed.