4 ms·
> moving a file breaks its relationship with a note How does OS X handle moving files while they're open/in use? One of the first things I stumbled upon when I
by emehrkay 12y ago
> moving a file breaks its relationship with a note
How does OS X handle moving files while they're open/in use? One of the first things I stumbled upon when I started using the OS is that it was possible, while Windows would throw an error.
- hrktb 12y agoIn OSX/linux/unix the application uses the inode (a system level file id basically), which is independent of the path where the file is stored. This allows to move a file around, even trash, while applications can keep referring to it. This can be weird (if you delete a file in use, it won't be effectively deleted from disk until every application accessing it stop doing so)
- mateuszf 12y ago> This can be weird (if you delete a file in use, it won't be effectively deleted from disk until every application accessing it stop doing so) That explains why I can easily remove a running process on Linux, but it doesn't work on Windows.