"Latest symlink"A "latest" symlink, is a symbolic link (on Linux,
Unix etc) which links to the "latest" version of a file.
Suppose we have a file which takes some effort to create, which
is generated periodically or in response to some stimulus (e.g.
user activity). Then we want to create a "latest version"
symlink.
Ideally the properties should be
- latest symlink always points at the latest version (duuh!)
- latest symlink always exists
- latest symlink never points at a partially completed, broken, missing or otherwise bad file
Sometimes people do this in a way which won't work.
How to create a symlinkDead easy, right? Just call the "symlink"
function.
int symlink(const char *oldpath, const char
*newpath);
DESCRIPTION
symlink()
creates a symbolic …