Multiple retries needed after file in use
Moderators: Hacker, petermad, Stefan2, white
Multiple retries needed after file in use
Create a multiple-level nested subdirectories, e.g. mkdir a\b\c\d and open e.g. a cmd window in the leaf subdirectory (cd a\b\c\d) and keep it open so that it holds the directory open. Now, In Total Commander, try to delete the top-level a directory, and confirm [All] on “Do you want to delete it with all its files and subdirectories?”
Obviously, Total Commander will report “The following files/folders could not be deleted” with the full list of all subpaths (a\b\c\d\, a\b\c\, a\b\, a\) and asks if it should retry.
So, now close the cmd window and click [Retry]. Expected behavior: Everything is deleted now.
Actual behavior: the leaf directory is deleted and the error message is shown again, with one less entry in the list. Click [Retry] again, another message with one less directory appears. Etc. until after enough retries, the whole directory tree is deleted.
Obviously, Total Commander will report “The following files/folders could not be deleted” with the full list of all subpaths (a\b\c\d\, a\b\c\, a\b\, a\) and asks if it should retry.
So, now close the cmd window and click [Retry]. Expected behavior: Everything is deleted now.
Actual behavior: the leaf directory is deleted and the error message is shown again, with one less entry in the list. Click [Retry] again, another message with one less directory appears. Etc. until after enough retries, the whole directory tree is deleted.
Re: Multiple retries needed after file in use
Confirmed using TC 11.01 32-bit and 64-bit.
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Multiple retries needed after file in use
I cannot reproduce that. When I close the cmd shell when I get the first message, then all the other directories get deleted too when I choose retry.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: Multiple retries needed after file in use
I can confirm the OP + whites findings, asked repeatedly to retry for each folder vs one retry. Windows 10.
F4MiniMenu (Forum) - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey). TCSyncComments (copy file comments)
Source at GitHub (AutoHotkey). TCSyncComments (copy file comments)
Re: Multiple retries needed after file in use
Try Shift+Del. The others, like me, probably have recycle bin disabled.ghisler(Author) wrote: 2023-09-28, 16:36 UTC I cannot reproduce that. When I close the cmd shell when I get the first message, then all the other directories get deleted too when I choose retry.
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Multiple retries needed after file in use
When do you close the cmd window? Here it works when I close in when getting the first retry message. I did delete with Shift+Del.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: Multiple retries needed after file in use
Yes, at the first retry message, exactly as described in the first post. Here are my steps:ghisler(Author) wrote: 2023-09-28, 19:31 UTC When do you close the cmd window? Here it works when I close in when getting the first retry message. I did delete with Shift+Del.
- I create folder a\b\c\d in Total Commander
- I navigate to a\b\c\d in Total Commander
- I open a Command prompt window in Total Commander
- I navigate to the parent folder of folder "a" in Total Commander
- I delete folder "a" and at the prompt I choose to delete all
When deleting directly, a Total Commander msg pops up as described in the first post, closing the Command prompt window and clicking Retry deletes folder "d" and displays the msg again for the remaining folders, etc.
Re: Multiple retries needed after file in use
open cmd
mkdir a\b\c\d
cd a\b\c\d
F8 on 'a'
All
TC says: The following ... [don't do anything]
Close cmd, go back to TC
Click Retry, you'll be asked 4 times:
mkdir a\b\c\d
cd a\b\c\d
F8 on 'a'
All
TC says: The following ... [don't do anything]
Close cmd, go back to TC
Click Retry, you'll be asked 4 times:
---------------------------
Total Commander
---------------------------
The following files/folders could not be deleted:
a\b\c\d\
a\b\c\
a\b\
a\
Try again?
---------------------------
Retry Cancel
---------------------------
---------------------------
Total Commander
---------------------------
The following files/folders could not be deleted:
a\b\c\
a\b\
a\
Try again?
---------------------------
Retry Cancel
---------------------------
---------------------------
Total Commander
---------------------------
The following files/folders could not be deleted:
a\b\
a\
Try again?
---------------------------
Retry Cancel
---------------------------
---------------------------
Total Commander
---------------------------
The following files/folders could not be deleted:
a\
Try again?
---------------------------
Retry Cancel
---------------------------
F4MiniMenu (Forum) - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey). TCSyncComments (copy file comments)
Source at GitHub (AutoHotkey). TCSyncComments (copy file comments)
Re: Multiple retries needed after file in use
03.10.23 Fixed: When deleting a nested folder like a/b/c/d failed, TC asked for each parent whether it should retry to delete it (32/64)
F4MiniMenu (Forum) - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey). TCSyncComments (copy file comments)
Source at GitHub (AutoHotkey). TCSyncComments (copy file comments)
Re: Multiple retries needed after file in use
Tested OK using TC 11.02rc1 32-bit and 64-bit.
Moderator message from: white » 2023-10-05, 22:49 UTC
Moved to Fixed bugs.
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Multiple retries needed after file in use
I misunderstood the report - I understood that you pressed Retry for each folder a..d, but only d was deleted. But you were complaining that you were asked about each of the subfolders separately, which is of course not necessary.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com