6 ms·
Imagine if Windows just allowed DeleteFile() even if the file was open, like unlink() on almost any other OS...
by sim- 3y ago
Imagine if Windows just allowed DeleteFile() even if the file was open, like unlink() on almost any other OS...
- nikanj 3y agoImagine all the "WinBLOWZ is bullshit, I deleted 200 gigs of shit and my C: still has no more free space" posts if Windows started doing soft deletes
- ChrisSD 3y agoIt does. But this issue arises because of file locks. Running an executable holds a lock that prevents deletions (but not renames). Many OSes have file locks, though they often don't use them as liberally as Windows.