View Issue Details

IDProjectCategoryView StatusLast Update
0002257Double CommanderFile operationspublic2021-10-29 23:21
ReporterAasasd Assigned ToAlexx2000  
PrioritylowSeverityminorReproducibilityalways
Status closedResolutionfixed 
ProjectionnoneETAnone 
PlatformMac (x86_64)OSMacOSOS Version10.11
Product Version0.9.1Product Build8664 2019/02/16 
Target Version0.9.6Fixed in Version0.9.6 
Summary0002257: Can't delete to the trash bin in symlinked directories on different volumes (partitions)
DescriptionIf a symbolic link leads to a directory on a different disk partition (from the one on which the link is located), Doublecmd opens the link as a directory but can't delete files or directories there to the Trash bin. An alert appears: “Can't delete the file to the trash! Delete it directly?”, and the proposed option is to remove the file immediately.

This doesn't happen if the symlink and the link target are on the same partition: files are deleted to the trash bin.

(Note that this isn't about Mac's 'aliases,' which aren't recognized by Doublecmd.)
Steps To Reproduce- create a symlink to a directory on a different disk or partition.

- open the symlink in Double Commander as if it were a directory.

- try to delete a file or a directory anywhere in that directory.
Additional InformationDouble Commander
Version: 0.9.1 beta
Revision: 8664
Build date: 2019/02/16
Lazarus: 2.0.1.0-60391
FPC: 3.0.4
Platform: x86_64-Darwin-qt4
OS version: Mac OS X 10.11.6

Widgetset library: Qt 4.8.6, libQt4Pas 4.5.3


Since files on secondary disks/partitions are deleted fine to the trash bin when outside a symlink, I would guess that calling 'realpath' to obtain the true file location would help with deleting them properly in the symlinked-directory case. (However, I'd ask that it's done only before deletion, and symlinks are still open as directories with the path of the symlink.) Not sure if this solutions can cause any problems in Linux environments.
TagsNo tags attached.
Fixed in Revision8993, 9002
Operating systemMacOSX
WidgetsetQt4
Architecture64-bit

Activities

Aasasd

2019-03-13 23:07

reporter   ~0003089

Guess I should also mention that to reproduce the problem you'll need to have 'Delete files to the recycle bin' enabled in Doublecmd settings under 'File operation'—though it's pretty obvious from the issue.

ChrisWhy

2019-08-01 00:00

reporter   ~0003242

This also occurs for me on MacOS 10.13.6 with Double Commander 0.9.5 beta.

Issue History

Date Modified Username Field Change
2019-03-13 19:21 Aasasd New Issue
2019-03-13 23:07 Aasasd Note Added: 0003089
2019-08-01 00:00 ChrisWhy Note Added: 0003242
2019-08-03 15:43 Alexx2000 Target Version => 0.9.6
2019-08-03 15:46 Alexx2000 Status new => acknowledged
2019-08-10 22:09 Alexx2000 Fixed in Revision => 8993
2019-08-10 22:09 Alexx2000 Status acknowledged => resolved
2019-08-10 22:09 Alexx2000 Resolution open => fixed
2019-08-10 22:09 Alexx2000 Assigned To => Alexx2000
2019-08-24 14:17 Alexx2000 Fixed in Revision 8993 => 8993, 9002
2019-08-24 14:17 Alexx2000 Fixed in Version => 0.9.6
2021-10-29 23:21 Alexx2000 Status resolved => closed