← Back to team overview

desktop-packages team mailing list archive

[Bug 95854] Re: Folder is overwritten with a file with the same name

 

Which is the trouble with this bug: it's actually several otherwise very minor shortcomings that add up to a nasty result.
Apples-to-apples check did fix one problem, but it's circumvented via another.

The second "big" deal, of course, is that usually symlinks are treated as their targets, but using this approach in ALL contexts indiscrimiately is bad.
But.
The dialog itself is flawed: it's important enough to show more than a tab does, and it shows less.
Icons are good, but why the usual overlaid emblems are NOT applied in confirmation dialog? Then symlink would be at least clearly marked as such.
Then, there's "Size:(null)" for directories. Sure, looking inside slows down the huge list - but in the dialog there's only one item and for merging/overwriting purpose it's kind of important what's inside it, so perhaps settings different from the file list (and more verbose by default, at least on "X files + Y directories" level, though seeing the size of at least of immediately contained files would help too) would improve the situation.

Speaking of dialog, overwriting a directory with file is already unusual
enough that perhaps this should be a separate category for "apply to
all" purpose - just to be on the safe side. Merging a newer directory
into old may call for overwrite of old files, but this shouldn't easily
lead to something so strange and drastic.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to nautilus in Ubuntu.
https://bugs.launchpad.net/bugs/95854

Title:
  Folder is overwritten with a file with the same name

Status in Nautilus:
  Confirmed
Status in nautilus package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: nautilus

  1) lsb_release -rd
  Description:	Ubuntu Vivid Vervet (development branch)
  Release:	15.04

  2) apt-cache policy nautilus
  nautilus:
    Installed: 1:3.14.2-0ubuntu2
    Candidate: 1:3.14.2-0ubuntu2
    Version table:
   *** 1:3.14.2-0ubuntu2 0
          500 http://us.archive.ubuntu.com/ubuntu/ vivid/main amd64 Packages
          100 /var/lib/dpkg/status

  3) What is expected to happen is when one executes the following in a terminal:
  cd ~/Desktop
  mkdir test
  cd
  touch test

  then uses Nautilus to copy the file test to the Desktop, it does not allow this, just like it won't when using cp in a terminal:
  cp test Desktop/
  sudo cp test Desktop/
  cp: cannot overwrite directory ‘Desktop/test’ with non-directory

  or if one was using Windows.

  4) What happens instead is one gets a prompt noting:
  File Conflict
  Replace folder "test"?
  A folder with the same name already exists on "desktop".
  Replacing it will remove all files in the folder.
  Select a new name for the destination
  Apply this action to all files
  Cancel Skip Replace

  and if one accidentally hit the button Replace, the folder with all of
  its contents are permanently deleted, and replaced with the file.

  ProblemType: Bug
  Architecture: i386
  Date: Sun Mar 25 11:49:14 2007
  DistroRelease: Ubuntu 7.04
  Uname: Linux acer 2.6.20-12-generic #2 SMP Wed Mar 21 20:55:46 UTC 2007 i686 GNU/Linux

To manage notifications about this bug go to:
https://bugs.launchpad.net/nautilus/+bug/95854/+subscriptions