it does not always work if I want to delete a lot of files

General discussion related to "Everything".
Post Reply
Debugger
Posts: 630
Joined: Thu Jan 26, 2017 11:56 am

it does not always work if I want to delete a lot of files

Post by Debugger »

1. it does not always work if I want to delete a lot of files SHIFT + DEL
Example: 150000 small files.

2. it works always SHIFT + DELETE(Contex Menu) This method was proposed by my friend, but he did not explain why in this case he always works the first time.


Why?
void
Developer
Posts: 16683
Joined: Fri Oct 16, 2009 11:31 pm

Re: it does not always work if I want to delete a lot of files

Post by void »

It's a limitation with Everything and an old Windows API to delete files.

If one file fails to delete, then the whole delete operation is aborted (silently).

The next version of Everything will use a newer delete API (if available), which will not abort the deletion on a single failure.
The failure is also reported and the user is given an option to retry/skip/cancel the current operation.

The context menu and DEL will both end up down the same code path.
Both will check each file to be deleted actually exists before the old delete API is called, improving the odds that the operation will not be aborted.

It is most likely a file was deleted or renamed before the delete operation began.
Debugger
Posts: 630
Joined: Thu Jan 26, 2017 11:56 am

Re: it does not always work if I want to delete a lot of files

Post by Debugger »

I'm pressing the SHIFT key and the DEL key, but instead of permanently deleting it, I get information about moving to the recyclebin.
Post Reply