![]() |
|
laziness, impatience, and hubris | |
PerlMonks |
Re^2: rename fileby haukex (Bishop) |
on Aug 24, 2020 at 18:57 UTC ( #11121050=note: print w/replies, xml ) | Need Help?? |
If this is all happening on the same file system, then it's an atomic rename (fully done or not at all). It's not quite that simple. While rename(2) is supposed to be atomic on POSIXish systems, there are several of corner cases where that isn't completely reliable (e.g. NFS). One really has to know what OS and filesystem one is working on.
In Section
Seekers of Perl Wisdom
|
|