Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!cs.utexas.edu!uunet!mcsun!cernvax!chx400!chx400!bernina!neptune!iiic.ethz.ch!umueller From: umueller@iiic.ethz.ch (Urban Dominik Mueller) Newsgroups: comp.sys.amiga.programmer Subject: How to detect soft and hard links Message-ID: <27740@neptune.inf.ethz.ch> Date: 26 Mar 91 00:01:26 GMT Sender: news@neptune.inf.ethz.ch Reply-To: umueller@iiic.ethz.ch (Urban Dominik Mueller) Followup-To: comp.sys.amiga.programmer Organization: Departement Informatik, ETH, Zurich Lines: 22 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 |