28 ms·
I vaguely recall Windows NT 4 telling me to close the file before deleting or renaming it in Windows Explorer
by fiddlerwoaroof 9y ago
I vaguely recall Windows NT 4 telling me to close the file before deleting or renaming it in Windows Explorer
- klodolph 9y agoThis one is due to the major difference between the Unix and Windows approach to files. Windows will enforce access locks (unlike Unix, which only has advisory locks) and this is done by path (unlike Unix, which does it by inode). Windows now allows you to delete an open file, however, the way this works is a bit of a hack. If you try to create a new file with the same name, the operation will fail until the deleted file is closed.