"Accidental" deletion of a tree folder

Things you’d like to miss in the future...
Forum rules
You might want to read this if you're looking for priority service

:info: Please Include The Following Information
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: Use Your Profile Or Signature
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
Post Reply
noembryo
Posts: 264
Joined: 13 Apr 2022 21:40
Location: Windows 10 @100%
Contact:

"Accidental" deletion of a tree folder

Post by noembryo »

A few months ago (maybe a year?), I had accidentally deleted a folder while I was trying to delete one of its children dirs.
Since I don't use the Recycle bin, this was bad.
Tried a lot of apps for restoration, but all failed because although I could see the files, there were garbage.
Anyway, at the time I though that it was my mistake and try to be more careful from then on.
In the time that passed, two other people that I have converted to XYplorer users, reported the same mistake. One of them twice.
For one of them it was just an inconvenience since he was using the recycle bin, but for the other..
I attributed all of that to user's error and went on.

But yesterday a strange thing happened.
In a setup with a project folder selected on the tree (left), I went into a child dir (e.g. plans) and read its single file content.
I wanted to delete it (and its folder with it) and so I double clicked at the empty space, went up to the project folder with the plans folder selected, and pressed delete.
A dialog asked me if I wanted to delete the project folder. Oups!
I pressed cancel and checked the selection. The plans dir was selected but gray, and the project dir was blue (actively selected).
I went back inside plans and double clicked to get back up. The same thing happened. The plans was gray the project was blue.
I went in and out a few more times using other ways, but the selection was always to the project folder.
I thought that maybe I discovered a bug that I will report here for sure. I then clicked on the plans dir and pressed delete and enter to delete the folder.
And sure enough my whole project folder was gone!
Although I had manually select it with the mouse!
Something had changed the focus again, under my mouse.
The folder was a project that a had a huge refactoring going on, that the backups didn't fully recover.

After a while, when all the tries to get back to my project finished, and without restarting XYplorer, I have tried to replicate the accident, but I couldn't.
Always the plans dir was actively selected when I was coming out of it.
And this behavior is the standard, for all the years I use XYplorer.

I don't know if this has to do with XYplorer or with something else running in my system. It might be the latter.
But I report this, just in case there is a chance that someone (or Don himself) pinpoint a test case that can replicate it.
Check my free programs here..

admin
Site Admin
Posts: 67271
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: "Accidental" deletion of a tree folder

Post by admin »

I don't think there is bug here. Looks like a user error to me.

You might want to check this to avoid such mishap in the future:
Configuration | General | Safety Belts, Network | Safety Belts | Disallow delete by key in folder tree

And please, enable the Recycle Bin!

noembryo
Posts: 264
Joined: 13 Apr 2022 21:40
Location: Windows 10 @100%
Contact:

Re: "Accidental" deletion of a tree folder

Post by noembryo »

admin wrote: ↑14 Nov 2026 12:55 I don't think there is bug here. Looks like a user error to me.
This is what I thought at first, but as I said, I saw it happening in front of my eyes..
You might want to check this to avoid such mishap in the future:
Configuration | General | Safety Belts, Network | Safety Belts | Disallow delete by key in folder tree
This looks promising..
And please, enable the Recycle Bin!
Nope. I don't like it. :P
Check my free programs here..

admin
Site Admin
Posts: 67271
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: "Accidental" deletion of a tree folder

Post by admin »

noembryo wrote: ↑14 Nov 2026 13:09
admin wrote: ↑14 Nov 2026 12:55 I don't think there is bug here. Looks like a user error to me.
This is what I thought at first, but as I said, I saw it happening in front of my eyes..
Can you repro it?

noembryo
Posts: 264
Joined: 13 Apr 2022 21:40
Location: Windows 10 @100%
Contact:

Re: "Accidental" deletion of a tree folder

Post by noembryo »

admin wrote: ↑14 Nov 2026 13:41 Can you repro it?
As I said in the original post, nope.. :(
That's why I post it here, for maybe someone else had noticed something about it..
Check my free programs here..

eil
Posts: 1926
Joined: 13 Jan 2011 19:44

Re: "Accidental" deletion of a tree folder

Post by eil »

admin wrote: ↑14 Nov 2026 12:55 You might want to check this to avoid such mishap in the future:
Configuration | General | Safety Belts, Network | Safety Belts | Disallow delete by key in folder tree
BTW, how about adding another safety belt along this: "Disallow changing path by typing in folder tree"?
I had a situation with accidental folder delete yeas ago and have mentioned safety-belt enabled since then. But every ones in a while, i get this situations with the accidental location change, cause i didn't notice the focus was still in the Tree and "started typing for live filter"(thinking the focus is in the List) = which led to "random" path change.(whatever it finds with typed letters in the Tree)
Win 7 SP1 x64 100% 1366x768|1900x1080

admin
Site Admin
Posts: 67271
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: "Accidental" deletion of a tree folder

Post by admin »

Sounds like a good idea. On my list.

hermhart
Posts: 257
Joined: 13 Jan 2015 18:41

Re: "Accidental" deletion of a tree folder

Post by hermhart »

Just curious if it would make any sense to change this new option from:
Disallow type ahead find in folder tree

to:
Redirect type ahead find in folder tree to file list

This way, any type ahead find always takes you back to the file list.
Windows 11 Pro; 100% scaling

eil
Posts: 1926
Joined: 13 Jan 2011 19:44

Re: "Accidental" deletion of a tree folder

Post by eil »

Good enhancement proposal, my bad not thinking it that far initially.
Win 7 SP1 x64 100% 1366x768|1900x1080

admin
Site Admin
Posts: 67271
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: "Accidental" deletion of a tree folder

Post by admin »

It's a good idea, but I find it a bit too unconventional. Key action in the focused control should not be redirected like that. I know we have "Redirect typing to Live Filter Box" already, but that works from list via LFB back to list, that's okay. But from tree to list, hmm...

eil
Posts: 1926
Joined: 13 Jan 2011 19:44

Re: "Accidental" deletion of a tree folder

Post by eil »

There is a point why this could be added at least as an additional option. The initial situation that i described, when proposing a new safety belt, was exactly about such case = when user starts typing cause thinks one's already in a List/not in a Tree, but somehow the focus is still in a Tree and it starts chaotically change List's location.
So i'd say, if the user enables this new safety belt, it's almost sure that one seeks to simply skip a Tree reaction on typing and instead get right to a List's Type Ahead Find(or Live filter if redirection enabled).
Win 7 SP1 x64 100% 1366x768|1900x1080

Post Reply