Comment 4 for bug 95854

Revision history for this message
Andrei Drynov (adrynov) wrote : Re: [Bug 95854] Re: Folder is overwritten with a file with the same name

Daniel, a couple of ideas:

1. Do not allow to overwrite a folder with a file

In Unix it is not possible anyway...

dhcp1k250:~/Desktop Andrei$ mkdir test
dhcp1k250:~/Desktop Andrei$ cd
dhcp1k250:~ Andrei$ touch test
dhcp1k250:~ Andrei$ cp test Desktop/
cp: cannot overwrite directory Desktop/test with non-directory test

Why does Nautilus overwrite the folder?

2. Give an explicit warning: "You are overwriting the folder @s with a file
@s. All the contents of the folder will be destroyed. Are you sure?"

It is somewhat Windows-like behaviour, but what the heck? It is data that is
being destroyed.

And please do not set Importance to Wishlist. I know at least three people
that lost some important stuff in this way. (This is a hard way to finally
to learn to backup 8-)))

On 29/03/07, Daniel Holbach <email address hidden> wrote:
>
> What do you suggest?
>
> ** Changed in: nautilus (Ubuntu)
> Importance: Undecided => Wishlist
> Assignee: (unassigned) => Ubuntu Desktop Bugs
> Status: Unconfirmed => Needs Info
>
> --
> Folder is overwritten with a file with the same name
> https://launchpad.net/bugs/95854
>

--
С уважением,
Сибиряк