4 ms·
That's the problem. Doesn't work for NFS. Rename is not atomic on some file systems. Crashes may leave temp files behind. Moving files from one directory to a
by Animats 10y ago
That's the problem. Doesn't work for NFS. Rename is not atomic on some file systems. Crashes may leave temp files behind. Moving files from one directory to another may not be atomic. Renaming API for NTFS differs for different versions of Windows. See this two-year discussion of trying to get this to work right for the Python library.[1] Do not taunt Happy Fun Ball.
This should Just Work.
[1] https://bugs.python.org/issue8828 https://bugs.python.org/issue8828
- bogomipz 10y ago>"Moving files from one directory to another may not be atomic." I was intrigued that you said "may not", can you elaborate on when it is vs when it isn't? >"Do not taunt Happy Fun Ball." This really made me laugh :)