#560 Skipping dir in copy across NTFS mounts deletes source dir

1.0
closed-fixed
nobody
libfm (280)
6
2012-07-05
2012-06-28
Anonymous
No

OS : Lubuntu 12.04 Precise Pangolin
PCManFM Version : 0.9.10

Bug Description:

=== Setup ===
1. Two different NTFS partitions/drives must be mounted. Lets call them /media/NTFS1 and /media/NTFS2
2. Issue the following commands (or do the equivalent via GUI in pcmanfm)
$ cd /media/NTFS1
$ mkdir abc # source directory
$ cd abc
$ touch 1 2 3 # contents of source directory
$ cd /media/NTFS2
$ mkdir abc # directory of same name that exists at destination
$ cd abc
$ touch 4 5 6

Now, we have two directories with the same names in each NTFS mount.
Each has some contents (this bug doesn't manifest for empty directories)

=== REPRODUCE BUG ===

1. Open NTFS1 in pcmanfm
2. Right click on directory abc and choose "Cut"
3. Open NTFS2 in pcmanfm
4. Paste
5. When it shows the dialog asking whether to (a) Cancel (b) Skip (c) Overwrite, choose (b) Skip

EXPECTED RESULT : source directory should remain untouched.

ACTUAL RESULT : source directory disappears! (is deleted)

======================

Discussion

    • milestone: --> 1.0
    • priority: 5 --> 6
    • labels: --> libfm
     
    • status: open --> pending-wont-fix
     
  • When you choose 'Skip' it does the same as if you don't do Paste, i.e. if you you just did Cut only. And when you do Cut but don't do Paste the file lives only in the Cut buffer. Try it in your preferred text processor - do Cut and don't do Paste - text you've cut wouldn't appear back. So the mentioned behavior should be considered right one.
    Use Move Files function (Drag & Drop with 'Shift' key hold pressed while dragging) instead so you should never lose files. That behavior is standard one (works in any other file manager on Unix or Windows), it is implemented in Git version of PCManFM too so will be in next release. We're sorry for possible inconveniences.

     
    • status: pending-wont-fix --> pending-fixed
     
  • And also since operations 'Copy' and 'Paste' aren't FS-specific and described behavior isn't reproducible with latest Git sources I would say it's fixed. Check it with latest sources, please. Thank you.

     
    • status: pending-fixed --> closed-fixed