Multiple retries needed after file in use

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Mormegil
Junior Member
Junior Member
Posts: 13
Joined: 2008-07-02, 18:34 UTC

Multiple retries needed after file in use

Post by *Mormegil »

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.
User avatar
white
Power Member
Power Member
Posts: 4623
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Multiple retries needed after file in use

Post by *white »

Confirmed using TC 11.01 32-bit and 64-bit.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Multiple retries needed after file in use

Post by *ghisler(Author) »

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
hi5
Power Member
Power Member
Posts: 551
Joined: 2012-11-03, 11:35 UTC
Contact:

Re: Multiple retries needed after file in use

Post by *hi5 »

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)
User avatar
white
Power Member
Power Member
Posts: 4623
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Multiple retries needed after file in use

Post by *white »

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.
Try Shift+Del. The others, like me, probably have recycle bin disabled.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Multiple retries needed after file in use

Post by *ghisler(Author) »

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
User avatar
white
Power Member
Power Member
Posts: 4623
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Multiple retries needed after file in use

Post by *white »

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.
Yes, at the first retry message, exactly as described in the first post. Here are my steps:
  • 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 to recycle bin, a windows msg pops up, closing the Command prompt window and clicking Retry works.
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.
hi5
Power Member
Power Member
Posts: 551
Joined: 2012-11-03, 11:35 UTC
Contact:

Re: Multiple retries needed after file in use

Post by *hi5 »

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:
---------------------------
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)
hi5
Power Member
Power Member
Posts: 551
Joined: 2012-11-03, 11:35 UTC
Contact:

Re: Multiple retries needed after file in use

Post by *hi5 »

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)
User avatar
white
Power Member
Power Member
Posts: 4623
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Multiple retries needed after file in use

Post by *white »

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.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Multiple retries needed after file in use

Post by *ghisler(Author) »

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
Post Reply