On 12/3/06, Reinhard Poetz <[EMAIL PROTECTED]> wrote:
...Some time ago somebody mentioned that the mv command is atomic. Is this information correct?...
on a Linux or unixish system, mv uses the rename() system call which is atomic (i.e. intermediate states are not visible), so mv somefile newfile and mv somedir newdir are atomic *if* source and target are on the same file system, but mv file1 file2 file3 newdir is not atomic as a whole, at some point file1 will be in newdir without file2 being there. -Bertrand