TC doesn't delete if Esc was pressed when counting
Moderators: Hacker, petermad, Stefan2, white
TC doesn't delete if Esc was pressed when counting
1. Select a lot of files (e.g. 1k-2k).
2. Press Delete (explorer method should be used which is default in Win7).
3. Press Esc during counting files, TC doesn't react on it at all.
4. Windows asks for delete confirmation, answer Yes.
5. Nothing happens. However, all works fine w/o pressing Esc at step 3.
Checked with TC8x32RC2 @ Win7x64ProSP1.
2. Press Delete (explorer method should be used which is default in Win7).
3. Press Esc during counting files, TC doesn't react on it at all.
4. Windows asks for delete confirmation, answer Yes.
5. Nothing happens. However, all works fine w/o pressing Esc at step 3.
Checked with TC8x32RC2 @ Win7x64ProSP1.
- ghisler(Author)
- Site Admin
- Posts: 50532
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Cannot reproduce - when Explorer method is used, TC doesn't count files in subdirs.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Confirmed. When you select a few thousands of files and press DEL, an empty "Deleting:" dialog appears. Then it waits for a while (CPU spikes and TC allocates 3.5kiB per file). After some time (depends on a number of files) a standard Windows delete dialog is shown. And as MVV reported, if you press ESC before the standard dialog appears, nothing gets deleted, regardless of what button you click in the dialog.
Windows 10 Pro x64, Windows 11 Pro x64
- ghisler(Author)
- Site Admin
- Posts: 50532
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
I see - TC is creating the OLE2 interfaces and adds the files for deletion by Windows, which can take a while. TC doesn't count files here. Therefore when you press ESC, TC isn't in the counting phase, and aborts the delete operation.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50532
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
What you describe here is the time from when I pass the list of files to the delete function until the actual deletion starts, and TC gets callbacks from the function for each deleted file. There is no way to abort the function while it is in this preparation phase, sorry.
Moving thread to "will not be changed" forum.
Moving thread to "will not be changed" forum.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com