Unable to delete within a tree

Things you’d like to miss in the future...
Forum rules
:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:

: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: 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: When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".

:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:
ivan
Posts: 577
Joined: 02 Apr 2008 12:52
Contact:

Unable to delete within a tree

Post by ivan »

I am using version 7.20.0000 and here's an interesting one.

Imagine a folder tree like this:
A --> B --> C, so basically folder B is in folder A and folder C is in folder B.

The right hand pane displays the contents of folder C. Now try right-clicking on folder B and selecting Delete. I did just that and Windows came back at me screaming that I need permission to perform this action. However, right-clicking on C and selecting Delete works and folder is in the bin.

Is that how it's supposed to not allow you to delete B in such situation? Is it a bug? Or am I missing something? :?

j_c_hallgren
XY Blog Master
Posts: 5826
Joined: 02 Jan 2006 19:34
Location: So. Chatham MA/Clearwater FL
Contact:

Post by j_c_hallgren »

I just tried it in Win Expl and got the same access error msg so XY is thus working no better/worse than WE... :wink:
Not sure why that is so, but given that it matches WE, I'm ok with it as is.
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.

ivan
Posts: 577
Joined: 02 Apr 2008 12:52
Contact:

Post by ivan »

There is a workaround. I use a program called Unlocker that deals with files that you try to delete and get a message along the lines of "unable to delete. this file is being used by another program".

So to be able to delete B in aforementioned circumstances I right-clicked on B, selected Unlocker from context menu and it turns out that there are 5 process handles locked on folder C, which is what's preventing the deletion. However, as soon as I unlocked those handles I was able to delete B while viewing C.

Furthermore, considering that in B there is nothing else other than C, then I'm struggling to understand why it's possible to delete C while viewing C, but not possible to delete B while viewing C... :?

Muroph
Posts: 561
Joined: 21 Aug 2007 16:13

Post by Muroph »

no problems here.

did i do it right?

create some folders like this:
a/b/c
display c on the list.
delete b from the tree.

unlocker shows lots of processes (all xy) using the folder, but delete works.

v7.20.00

EDIT: WE also works.

j_c_hallgren
XY Blog Master
Posts: 5826
Joined: 02 Jan 2006 19:34
Location: So. Chatham MA/Clearwater FL
Contact:

Post by j_c_hallgren »

Muroph wrote:no problems here.

did i do it right?

create some folders like this:
a/b/c
display c on the list.
delete b from the tree.
In my case, I had to have at least one file in "C"...

"C" is selected in tree and contents in list, then right-click on "B" in tree, get "delete?" msg, say yes, and then get "Access err" msg...(I only did it in WE to make sure it failed same way)
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Post by serendipity »

Works fine here too.
Like described, i had A>B>C and c had a text file in it and was displayed in list.
Tried deleting B from tree and worked fine.
v7.20.0004 on Windows XP Pro SP3

Muroph
Posts: 561
Joined: 21 Aug 2007 16:13

Post by Muroph »

j_c_hallgren wrote:In my case, I had to have at least one file in "C"...
i did try with files in 'c', and even previewing one of them.

i tried many different combinations of files, folders, panels and settings, but couldn't reproduce.
how i did it:

in the tree

new folder
--ds
----dshut

'dshut' is on the list with a bunch of files inside.
i right-click 'ds', delete and confirm.

is that right?

j_c_hallgren
XY Blog Master
Posts: 5826
Joined: 02 Jan 2006 19:34
Location: So. Chatham MA/Clearwater FL
Contact:

Post by j_c_hallgren »

Muroph wrote:'dshut' is on the list with a bunch of files inside.
i right-click 'ds', delete and confirm.

is that right?
Yes, that's what I did...I also had one file in the "ds" folder (in your naming)...and it fails in XY also, as I just checked.

I'm on 7.20.01 and W2K, so that may make a difference.
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.

ivan
Posts: 577
Joined: 02 Apr 2008 12:52
Contact:

Post by ivan »

I know that this behaviour is mimicked by Windows Explorer, but I don't think it's the right way to go and Xyplorer should go one step further (because it does already) and make sure that this works.

Don, can you please clarify if this is inherent Windows behaviour and if anything can be done about fixing this because as far as I can see it's a bug and a flaw in logic to boot :?

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Post by TheQwerty »

Muroph wrote:i tried many different combinations of files, folders, panels and settings, but couldn't reproduce.
Same here..

XY's got 5 or so locking handles on .\A\B but it allows me to delete B from the tree without any complaint.

What I find weird though is how after deleting B it jumps down a folder in the tree instead of going up to A.

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

Post by admin »

ivan wrote:I know that this behaviour is mimicked by Windows Explorer, but I don't think it's the right way to go and Xyplorer should go one step further (because it does already) and make sure that this works.

Don, can you please clarify if this is inherent Windows behaviour and if anything can be done about fixing this because as far as I can see it's a bug and a flaw in logic to boot :?
I would but I cannot reproduce it.

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

Post by admin »

TheQwerty wrote:What I find weird though is how after deleting B it jumps down a folder in the tree instead of going up to A.
This has been discussed elsewhere (can't find it now). There is no official standard behavior here AFAIK, and I checked various other products and my impression was that most of them do it the way XY does since 10 years: on delete keep selection on the same row if possible. In Tree, in List, everywhere.

ivan
Posts: 577
Joined: 02 Apr 2008 12:52
Contact:

Post by ivan »

admin wrote:I would but I cannot reproduce it.
Did you do it right? Remember, you need to have at least one file in C, whether you have any files in B is irrelevant.

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

Post by admin »

ivan wrote:
admin wrote:I would but I cannot reproduce it.
Did you do it right? Remember, you need to have at least one file in C, whether you have any files in B is irrelevant.
Okay, now I see it. It's related to Autorefresh. Try to disable Autorefresh and it will work. Right?

ivan
Posts: 577
Joined: 02 Apr 2008 12:52
Contact:

Post by ivan »

Correct, it works now. However, is there any way to make it work with Auto-refresh turned on? For someone like me (and I'm sure I'm not alone) it's an important feature.

Post Reply