logoalt Hacker News

nutjob2today at 12:23 PM2 repliesview on HN

If it has hard or soft links, its a proper graph.


Replies

zahlmantoday at 12:42 PM

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.

show 2 replies
calgootoday at 12:40 PM

That what i was thinking! Instead of Wiki links, use Symlinks (i guess windows would not like it?)