Page 1 of 1

XYplorer thinks every deletion from network drives are permanent

Posted: 19 Dec 2022 19:04
by 1024mb
When I do a simple DEL with any file inside a mounted network share which sends said file to the recycle bin, XYplorer thinks the deletion was permanent and doesn't allow me to undo the operation I have to manually go to the recycle bin and restore the file.

Re: XYplorer thinks every deletion from network drives are permanent

Posted: 19 Dec 2022 20:06
by JLoftus
Windows does not support recycling items from mapped drives by default. I posted a thread about this a while ago, follow these steps to enable network recycling:
viewtopic.php?t=20532

Re: XYplorer thinks every deletion from network drives are permanent

Posted: 19 Dec 2022 21:41
by 1024mb
I have already enabled them, that's the issue.

Re: XYplorer thinks every deletion from network drives are permanent

Posted: 20 Dec 2022 09:35
by admin
1024mb wrote: 19 Dec 2022 19:04 When I do a simple DEL with any file inside a mounted network share which sends said file to the recycle bin, XYplorer thinks the deletion was permanent and doesn't allow me to undo the operation I have to manually go to the recycle bin and restore the file.
What does the confirmation prompt say?

Re: XYplorer thinks every deletion from network drives are permanent

Posted: 20 Dec 2022 14:08
by JLoftus
1024mb wrote: 19 Dec 2022 21:41 I have already enabled them, that's the issue.
Did you also get the wow3264node entry?

Re: XYplorer thinks every deletion from network drives are permanent

Posted: 20 Dec 2022 18:19
by 1024mb
admin wrote: 20 Dec 2022 09:35 What does the confirmation prompt say?
I just deleted a folder. If I do Ctrl+z I get:
This action cannot be undone.
Reason: The deletion was permanent (no recycle bin).

Delete (Permanent) Folder "BLAHBLABHA" in "K:\dir A\BLAHBLABHA" (less than 1 min ago)
The action log also states that the deletion was permanent.
JLoftus wrote: 20 Dec 2022 14:08 Did you also get the wow3264node entry?
Yes, the recycle bin is working fine, it's been working fine for long time. Actually I think this issue (XYplorer not detecting that the recycle bin is enabled for the network drive) has been happening since for ever but I just chalked it up to other reasons and went on with my day, in the end 90% of the time when I delete something I don't restore it, I have rarely restored things from the trash, mainly when I delete something unintentionally when renaming files.

Re: XYplorer thinks every deletion from network drives are permanent

Posted: 20 Dec 2022 19:55
by JLoftus
You know, I'm getting that same CTRL+Z error:
2022-12-20_12h53_07.png
2022-12-20_12h53_07.png (6.52 KiB) Viewed 1012 times
CTRL+Z works fine on this mapped drive letter when using Windows Explorer.

I am pretty sure CTRL+Z was working at the time I made the post I referenced above, could go get old versions from the Freezer to test that theory.

I do have Delete to Recycle bin selected:
2022-12-20_12h56_41.png
2022-12-20_12h56_41.png (19.13 KiB) Viewed 1011 times

Re: XYplorer thinks every deletion from network drives are permanent

Posted: 20 Dec 2022 20:06
by JLoftus
Updated info for testing/debugging:

I went back and pulled a few versions out of the freezer. All failed with this same error, going back to version 19.90.0100 (April 2019, prior to my other post).

These tests were done on a completely clean/fresh instance of each of these versions, so it's certain not to be a configuration setting other than default. I get the delete prompt, but CTRL+Z results in the failure to restore the item. Also confirmed again that CTRL+Z worked fine to undelete items from a mapped drive letter in Windows Explorer. This does appear to be a bug of some kind.

Addendum: Also just tried something else... deleted the item in XY, failed to undelete using CTRL+Z, but then went over to Windows Explorer and pressed CTRL+Z, and the file was successfully undeleted. So XY is handling the "delete to recycle" part correctly, it's just the undo that's failing, and Windows Explorer is cognizant of the transaction and was able to undo the delete done within XY (went even older, this was done in version 18.90.0100)

Re: XYplorer thinks every deletion from network drives are permanent

Posted: 13 May 2023 10:18
by admin
Don't know why this thread got orphaned, probably because of Xmas? Sorry about it.

Anyway, When I delete an item from a mapped drive (Win 8.1), I get this prompt and it tells the truth. The deletion will be permanent:

Re: XYplorer thinks every deletion from network drives are permanent

Posted: 14 May 2023 14:19
by JLoftus
Mapped (network) drive deletes are permanent by default, however, you can edit the registry to have network deletes honor the recycle bin.

See this thread: viewtopic.php?t=20532

This is what we have done, however, despite the recycle working correctly in XY, the UNDO does not. The Undo does work correctly in Windows Explorer.

Re: XYplorer thinks every deletion from network drives are permanent

Posted: 15 May 2023 09:59
by admin
OK, got it. Since this is based on a Windows hack, I will add a tweak (instead of checking the registry).

Naah, I make it easier (I expect future Windows will default to this anyway): I just allow Undo on mapped drives. Whether it actually works depends on the Windows settings.

Re: XYplorer thinks every deletion from network drives are permanent

Posted: 15 May 2023 16:16
by JLoftus
CTRL+Z (undo) on network delete is working now, thanks Don!

Re: XYplorer thinks every deletion from network drives are permanent

Posted: 24 May 2023 14:29
by TMProjection
sweet, did you update xyplorer in in another alpha or beta version? (i keep lossing track which one i need to download on an update lol)

thank you for checking in on these issues

Re: XYplorer thinks every deletion from network drives are permanent

Posted: 24 May 2023 17:33
by admin
24.40.0100, official download

Re: XYplorer thinks every deletion from network drives are permanent

Posted: 28 Jun 2023 16:47
by TMProjection
can confirm, with the update this is now fixed :)