Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!rphroy!caen!uwm.edu!bionet!agate!darkstar!ucscb.UCSC.EDU!davids From: davids@ucscb.ucsc.edu (Dave Schreiber) Newsgroups: comp.sys.amiga.programmer Subject: Checking to see if a file's a link Message-ID: <15127@darkstar.ucsc.edu> Date: 28 Apr 91 20:56:13 GMT Sender: usenet@darkstar.ucsc.edu Organization: University of California, Santa Cruz; Open Access Computing Lines: 18 Is there a way, under 2.0, to examine a file or directory from a program and determine whether or not it's a link? I'm trying to write a DU program that will avoid going in circles if there's a link in a directory to an ancestor of that directory. On a related topic, will the release version of Workbench 2.x have this sort of protection built into it's recursive commands (like dir)? Currently, if I have a directory 'foo', with a link to it's parent directory, and I do a 'dir foo all', dir ends up going in circles. Thanks. -- Dave Schreiber davids@ucscf.ucsc.edu "It was fun learning about logic, but I don't see where or when I will ever use it again."