3 ms·
I deleted a file from Explorer, but it came back when I refreshed
- theamk 5y agoDoes Raymond ever admits to a bug in the "Old New Thing" blog? I've read a fair number of the posts there (they are very interesting!) and I am always flummoxed by his acceptances of the state. Like here -- the file is deleted, but because of mandatory file locking, the file sticks around until all handles are closed. We can talk about inodes, but that's not Windows way and this is fine, FS semantics variety keeps life interesting. But surely most people would agree that "the file disappears from the Explorer window, but if they refresh the window, the file comes back." is a buggy behavior? And the best fix for that would be from Microsoft -- maybe filesystem should not enumerate deleted files, or there should be some attribute to indicate "file deleted", or maybe Explorer can detect this situation and show file in gray. And yet, post has no mentions of this, acting like Windows is doing something reasonable and this is user app's fault for keeping the file open.