View Issue Details

IDProjectCategoryView StatusLast Update
0000676Double CommanderFile operationspublic2017-09-04 08:25
Reporterxarasho Assigned Tocobines  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
ProjectionnoneETAnone 
PlatformlinuxOSubuntuOS Version12.04.02
Product Version0.6.0 (trunk)Product Build2013-04-28 
Fixed in Version0.5.7 
Summary0000676: when copying a directory to its own soft-link, all files deleted
DescriptionI tried to copy a directory with SVN repository (if it matters)

Accidentally, the target dir was a symlink to the source dir.

when i copied the files, doublecmd asked me
 - copy into existing directories (I answered yes to all)
 - copy into existing files (I answered yes to all)

it then said:
"cannot open existing file: /xxx/yyy/zzz (retry / skip / skip all / abort)

both when i chose skip or retry, the SOURCE file was deleted

I think this kind of errors are easy to prevent:
If the target file exist, either
 - check if the file is a symlink, or
 - remove (delete) the target before copying the source!
 - or better:
1) copy into a temp name,
2) and then delete the target after it's finish,
3) and then rename destination as target,

Steps To Reproduce(be sure to backup everythiong before !!)

1) create a symlink to an existing directory (with subdirectories and files)
2) in doublecmd go into the original dir
3) select all items inside (ctrl+a)
4) in the other panel, go into the symlink
5) copy all files & folders into the symlink (F5)

Additional Informationok, of course i know it's stupid to copy files into their own symlink,
but i didn't notice that it was a symlink (on someone else's computer)
Errors like this do happen sometimes, and it could happen to others.

(Luckily, I just made a backup of the source before the copy - but if someone don't do backup - they're screwed)
TagsNo tags attached.
Fixed in Revision5285,5286
Operating systemLinux
Widgetset
Architecture32-bit

Activities

cobines

2013-08-23 15:53

administrator   ~0001115

Now such copy will be rejected.

Issue History

Date Modified Username Field Change
2013-06-11 14:08 xarasho New Issue
2013-06-17 22:51 Alexx2000 Status new => confirmed
2013-08-23 12:21 cobines Assigned To => cobines
2013-08-23 12:21 cobines Status confirmed => assigned
2013-08-23 15:53 cobines Fixed in Revision => 5285,5286
2013-08-23 15:53 cobines Note Added: 0001115
2013-08-23 15:53 cobines Status assigned => resolved
2013-08-23 15:53 cobines Fixed in Version => 0.5.7
2013-08-23 15:53 cobines Resolution open => fixed
2017-09-04 08:25 Alexx2000 Status resolved => closed