3 ms·
> I don't know if there's a standard call to tell the filesystem "mv current old && mv new current" in one shot. Used to be hackily done by overwriting symlink
by bhaney 2y ago
> I don't know if there's a standard call to tell the filesystem "mv current old && mv new current" in one shot.
Used to be hackily done by overwriting symlinks, but now there's https://manpages.debian.org/testing/manpages-dev/renameat2.2.en.html#RENAME_EXCHANGE https://manpages.debian.org/testing/manpages-dev/renameat2.2...