Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!gem.mps.ohio-state.edu!tut.cis.ohio-state.edu!oscsuna.osc.edu!heinlein.osc.edu!spencer From: spencer@heinlein.osc.edu (Stephen N. Spencer) Newsgroups: comp.sys.mac.programmer Subject: Re: Getting the full pathname? Message-ID: <351@oscsuna.osc.edu> Date: 16 Oct 89 12:05:24 GMT References: <850zebolskyd@yvax.byu.edu> <111@crucible.UUCP> Sender: news@oscsuna.osc.edu Reply-To: spencer@heinlein.UUCP (Stephen N. Spencer) Organization: OSU Advanced Computing Center for the Arts and Design Lines: 20 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 :-( > Apple seems to use it (the dirID == 2 test for checking for root directory): look at their sample code concering the Standard File Package. While not hard documentation, it does lend some validity to the test. -=- Stephen N. Spencer |"For a successful technology, reality must take ACCAD, 1224 Kinnear Rd. | precedence over public relations, for Nature Columbus OH 43212 | cannot be fooled." - Richard P. Feynman spencer@heinlein.cgrg.ohio-state.edu OR spencer@cis.ohio-state.edu