Absolute link pointers, able to work in another system

symlink

I have a folder and within it there are many links.

I make those links absolute, so that I can move them about within the folder and they still point to the same data. Relative links would break if I moved them within the folder.

But the problem arises when i move the folder to another system, say an external hard drive or server. Then all the absolute links have the wrong base in their address.

If it were possible to have the links have a variable within their address pointing, then that would solve this problem.

Is that possible?

Best Answer

I guess the answer to your problem are variant symbolic links, though they only exist on DragonFlyBSD to the best of my knowledge (see that previous question: Dynamic Symlinks )

Related Question