[comp.sys.amiga.programmer] How to detect soft and hard links

umueller@iiic.ethz.ch (Urban Dominik Mueller) (03/26/91)

One example says more than a thousand words:
 
Ram Disk:> makedir bug
Ram Disk:> cd bug
Ram Disk:bug> makelink .. /
Ram Disk:bug> Dir opt a
     .. (dir)
          bug (dir)
               .. (dir)
                    bug (dir)
                         .. (dir)
                              bug (dir)
                                   .. (dir)
 
This is only one of many cases where it would be desirable to detect links.
Is there a way to do so? How can I tell from the FileInfoBlock that a file
or directory is only a link?
                                          __
 |          Urban Mueller         |      / / |    Urban Mueller    |
 | INTERNET:umueller@iiic.ethz.ch | __  / /  |    Schulhausstr. 83 |
 | FIDONET: 2:302/906 (AUGL)      | \ \/ /   | CH-6312 Steinhausen |
 | "Don't tell my employer"       |  \__/    |    SWITZERLAND      |