Problem deleting a folder when it is active (Again)

Discussion & Support for xplorer² professional

Moderators: fgagnon, nikos, Site Mods

namoi
New Member
Posts: 4
Joined: 2003 Dec 07, 18:18

Problem deleting a folder when it is active (Again)

Post by namoi »

I was a user of Xplorer² alpha for a while and i've just downloaded the Pro release. I must say it has never been so great, BUT there's always (for me at least) a major problem (as i've wrote it here a few time ago).
Here it is : When i try to delete a folder (empty or not) directly in the tree pan AND if this folder is active in one of the two pans i receive an error message saying something lihe this (it's a translation) :
"sharing violation. source or destination file is maybe in used"
Xplorer² is the only appz which handle the file at that time, i'm sure of it.

I think it's a pitty (for me) because i use always this way to delete folder in windows explorer (w2k or winXP) without problem and it's why i saddly don't use Xplorer² anymore 'cause even with all the very good features i get frustrated all the time.

Thanks

Oh ! I think too : it could be nice to have a "undo" feature (with some limitations) as in Win Explorer.
User avatar
nikos
Site Admin
Site Admin
Posts: 15808
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

Post by nikos »

namoi
New Member
Posts: 4
Joined: 2003 Dec 07, 18:18

Post by namoi »

Thank you to reply so quick, but it didn't really helped. I know that the problem is not really a bug, but i don't understand why it's impossible:
Win explorer do it well and it's nothing comparing with Xplorer² ?
User avatar
fgagnon
Site Admin
Site Admin
Posts: 3737
Joined: 2003 Sep 08, 19:56
Location: Springfield

Post by fgagnon »

nikos,

This limitation annoys (bugs) me too. While I have trained myself to accept it, I still will occasionally do the intuitive thing and try to delete a folder from the tree pane. Of course when that doesn't work, I go back to the active pane, go up a level, select the folder and then delete it successfully.

But that's extra clicks.

This has come up often enough to have an FAQ, but in my mind it doesn't justify requiring users to be aware of the open pane vs. going ahead with such a frequently occuring intuitive action.

While you can't do anything about another app having a folder locked, it should be straightforward for you to check whether the folder to be deleted is being displayed in one of the x2 panes. If so, you could raise it up a level, and then proceed with the delete action. :)
User avatar
nikos
Site Admin
Site Admin
Posts: 15808
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

Post by nikos »

if it was something simple to do, i would have done it long ago!
what about deleting to the recycle bin? this should work whether you are browsing the folder or not (unless it is something that can't go in the bin like a network folder)
User avatar
fgagnon
Site Admin
Site Admin
Posts: 3737
Joined: 2003 Sep 08, 19:56
Location: Springfield

Post by fgagnon »

Deleting from tree (to recycle bin) works for these cases
* Folder is open in inactive pane
* Folder is item in either pane (or neither)

but not for the case I hit most commonly:
* folder is open in active pane

Note Tree options for above s/b --
UNchecked for Single click to change folder...
(else, folder quickly becomes open in active pane, becoming the case which doesn't work)
User avatar
nikos
Site Admin
Site Admin
Posts: 15808
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

Post by nikos »

this exactly demonstrates my point
if you are trying to delete the active folder, then you've only got yourself to blame :)

the active folder is always the "current directory" (that's why it can't even go in the bin).
that's how you can execute commands with various $N etc tokens and it works without path info

there would be an extraordinary effort on my part to cancel all that whenever there was a delete request

as far as single click activation is concerned, the only workaround is to right-click and pick delete from the context menu
User avatar
fgagnon
Site Admin
Site Admin
Posts: 3737
Joined: 2003 Sep 08, 19:56
Location: Springfield

Post by fgagnon »

I wasn't suggesting it would be easy to implement ...
only that it would be helpful for users :)

Not knowing the x2 execution heirarchy/nesting(dependencies?) it seems reasonable to suggest adding a test at beginning of a "delete from tree" request to:
first check if folder is the active pane:
If TRUE,
* remember folder to be deleted
* suspend Single click.../hands free operation (if set),
* then change active pane (cwd) to its parent;
* delete intended folder
* reinstate Single click.../hands free operation (if set),
At finish, highlighted item in tree would be parent of deleted folder, and the current working directory.

The above sequence (in my ignorance of actual x2 code structure) would seem to be a valid approach.
User avatar
nikos
Site Admin
Site Admin
Posts: 15808
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

Post by nikos »

and repeat for all other cloned instances (if any), future tabs... :crazy:
User avatar
fgagnon
Site Admin
Site Admin
Posts: 3737
Joined: 2003 Sep 08, 19:56
Location: Springfield

Post by fgagnon »

I see you're thinking out the complications of a 99.99% solution ...

... but for the 90% of users who will only have the one dual-pane instance open when trying to delete a folder they have just examined & determined that the contents are of no further value --
you only need to check the current instance.

IMO that would staisfy the grand majority of users and cases. :D
User avatar
nikos
Site Admin
Site Admin
Posts: 15808
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

Post by nikos »

but keep in mind that it isn't just from the tree; it can be from a scrap frame, a selection of folders in the active pane and god knows what else.

i've added this in my list but without any big priority
also i will have to assess just how complicated a programmed workaround would be; if it takes me 3 months to program something that saves the user 0.1 second... that doesn't make too much sense, no?
User avatar
fgagnon
Site Admin
Site Admin
Posts: 3737
Joined: 2003 Sep 08, 19:56
Location: Springfield

Post by fgagnon »

I understand.
but I say again ...
90% of the time, it's just the simple case that irritates.
And I think that's worth addressing.

PS:
... & tho' it may only be 0.1 sec for you to regroup, for me it's:
1. wait 4 seconds for system to display the "Error deleting file or folder" message box
2. exhibit "doh" reaction (0.1 sec)
3. gather senses (1-5 sec's, dep. on curr state of alleged mind)
4. activate parent, select & delete orig folder (2 secs)
5. continue work (in a chastened mode)

Note: sometimes 2.& 3. will be executed before 1. has timed out. ;)
User avatar
nikos
Site Admin
Site Admin
Posts: 15808
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

Post by nikos »

however had you planned the deletion in advance it wouldn't be more than 1-2 seconds to do the checks and any required getting out of the doomed folder ;)
User avatar
fgagnon
Site Admin
Site Admin
Posts: 3737
Joined: 2003 Sep 08, 19:56
Location: Springfield

Post by fgagnon »

true,
but ability to do that has to do with state of alleged mind ;)
User avatar
nikos
Site Admin
Site Admin
Posts: 15808
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

Post by nikos »

ps do you do this kind of thing only to empty folders?
Post Reply