Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!gem.mps.ohio-state.edu!brutus.cs.uiuc.edu!psuvax1!psuvm!cunyvm!byuvax!zebolskyd From: zebolskyd@yvax.byu.edu Newsgroups: comp.sys.mac.programmer Subject: Re: Getting the full pathname? Message-ID: <859zebolskyd@yvax.byu.edu> Date: 18 Oct 89 08:34:52 GMT Lines: 21 In article <111@crucible.UUCP> al@crucible.UUCP (Al Evans) writes: >In article <850zebolskyd@yvax.byu.edu> zebolskyd@yvax.byu.edu writes: > >>If you want the _user_ to be able to see the pathname (and find their way to >>the file) you can use PBGetWDInfo to get the dirID from your working >>directory, then PBGetCatInfo to get that directory's parent's dirID, and >>so on until to get to dirID=2, which will be the root. You get the names > ^^^^^^^ > Although this seems to be true, it doesn't seem to be documented :-( > This _is_ documented, Al, old chum. In IM vol. IV. Where else would a rank amateur like myself get such information? The reference to the dirID=2 included the word "always" so I thought it sounded safe to use. The information was somewhere in the introductory description of HFS, where paths, etc., are discussed. Page IV-92, line 2. Still, the algorithm presented earlier, which watched for errors instead, has the merit that if Apple does not define "always" as I do, it will still work. Thanks for the information, people! --Lyle D. Gunderson zebolskyd@yvax.byu.edu