logoalt Hacker News

zahlmantoday at 12:42 PM2 repliesview on HN

On Linux at least, hard links can't be made to directories, except for the magic . and .. links. So this only allows for a DAG.

Symbolic links can form a graph, and you can process them as needed using readlink etc. to traverse the graph, but they'll still be considered broken if they form a cycle.


Replies

PunchyHamstertoday at 7:37 PM

I guess technically you could do bind mounts but that's messy

Retr0idtoday at 1:24 PM

Considered broken by what?

show 1 reply