by makecheck · 9y ago · 0 comments
The correct method is to immediately move/rename the target, then launch an expensive delete in the background. That frees up the location you are trying to use.
I used to see people set up entire workflows that started with, essentially, "wait 20 minutes to finish recursively deleting the previous data" instead of just "move it out of the way and start immediately".
And that's using rmdir.
I mean when Shift+Deleting, or emptying the trash, Windows should:
- mark the folder as "garbage" in the filesystem and rename it to something impossible to free up the name
- hide the folder from the UI (apps should not see the file anymore)
- schedule a real deletion (reclaiming the space) with low priority in the background
- in case of a crash, chkdisk should detect garbage files and delete them.