4 ms·
It's not atomic at all although you're unlikely to notice in most situations. Not what I would use in a script, though.
by gchpaco 17y ago
It's not atomic at all although you're unlikely to notice in most situations. Not what I would use in a script, though.
- fexl 17y agoRight ... "reasonably atomic" I say. Come to think of it, I'm not sure what I'd use in a script for this.
- deleted 17y ago[deleted]
- fexl 17y agoOn second thought if you use symlinks I'm pretty sure this is atomic: ln -Tfs $dir $symlink Where $dir is the name of a directory and $symlink is the name of a symlink.