Feature Request: File/Directory Unlocking
Moderators: fgagnon, nikos, Site Mods
-
- Site Admin
- Posts: 16296
- Joined: 2002 Feb 07, 15:57
- Location: UK
-
- Member
- Posts: 13
- Joined: 2005 Aug 16, 08:07
How difficult can it be for a program to just remove the lock when the exact same program tries to delete something?nikos wrote:you either have to live with delete errors or without "current directory", sorry
Also, even when we should live with it (which is bloody nonsense!!) why does the program try to delete something that it has locked by itself anyway? In thata case, it should not have to wait for the timeout on replying to the user that the folder is locked.
The message to the user should be this:
'I'm sorry, I cannot delete this folder because I am using it without doing anything with it. Please, make sure I am not using this folder when you ask me to delete it!'
-
- Member
- Posts: 13
- Joined: 2005 Aug 16, 08:07
-
- Bronze Member
- Posts: 142
- Joined: 2003 Apr 15, 15:39
- Location: Boulder, Colorado
-
- Gold Member
- Posts: 575
- Joined: 2004 Jun 12, 10:47
-
- Member
- Posts: 13
- Joined: 2005 Aug 16, 08:07
Better not
And I do not mean to be unpolite. 'Please' was typed in there for a purpose, you know.
There are plenty of 'mistakes' in the user interface of my programs too - everyone makes them. But, at least, I try to correct them without saying the user must be wrong because he/she uses the program somewhat other than I was thinking of.

There are plenty of 'mistakes' in the user interface of my programs too - everyone makes them. But, at least, I try to correct them without saying the user must be wrong because he/she uses the program somewhat other than I was thinking of.
-
- Site Admin
- Posts: 16296
- Joined: 2002 Feb 07, 15:57
- Location: UK
i have said many times in the past that this "locking" could affect so many parts of the UI that it may take me ages to fix. (e.g. what if after x2 "unlocks" the user cancels the delete? and myriad other such issues)
For users that only come across this situation infrequently (e.g. i never do) it isn't much of an issue since they can take care to unlock it themselves by browsing another folder
if you find that this occurs too often and it slows you down and the workaround i offered won't work, and you can't appreciate the remaining features of the program, then clearly x2 isn't for you
i work with limited resources and this particular bug/feature is very low in my priority list
For users that only come across this situation infrequently (e.g. i never do) it isn't much of an issue since they can take care to unlock it themselves by browsing another folder
if you find that this occurs too often and it slows you down and the workaround i offered won't work, and you can't appreciate the remaining features of the program, then clearly x2 isn't for you
i work with limited resources and this particular bug/feature is very low in my priority list
-
- Member
- Posts: 13
- Joined: 2005 Aug 16, 08:07
-
- Site Admin
- Posts: 16296
- Joined: 2002 Feb 07, 15:57
- Location: UK
you can do that already by making your scripts "multiline"
say that you want to execute a script that deletes the selection or something. Instead of issueing just the delete command, have two, the first one doing the CD: (notice the comma)
(use the preview button if you can't understand what this does)
actually you are CD-ing way too many times but this won't affect the operation
ps another possibility is to use $-tokens that correspond to full paths, e.g. $F instead of $N. Then you don't need the current directory either
say that you want to execute a script that deletes the selection or something. Instead of issueing just the delete command, have two, the first one doing the CD: (notice the comma)
Code: Select all
cd "$P" , del "$N"
actually you are CD-ing way too many times but this won't affect the operation
ps another possibility is to use $-tokens that correspond to full paths, e.g. $F instead of $N. Then you don't need the current directory either