How do you create a hardlink (as opposed to a symlink or a Mac OS alias) in OS X that points to a directory? There is the command "ln target destination" but that only works when the target is a file.
I know that Mac OS, unlike other Unix environments, does allow hardlinking to folders (this is used for Time Machine, for example) but I don't know how to do it myself. I am also aware that using directory hardlinks is not "best practice" as it can cause some programs to recurse infinitely while scanning a tree.