Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!uwvax!oddjob!sphinx!cute From: cute@sphinx.uchicago.edu (John Cavallino) Newsgroups: comp.sys.mac Subject: Re: obtaining the full pathname of a file Message-ID: <1970@sphinx.uchicago.edu> Date: Thu, 11-Jun-87 23:08:54 EDT Article-I.D.: sphinx.1970 Posted: Thu Jun 11 23:08:54 1987 Date-Received: Sat, 20-Jun-87 12:53:53 EDT References: <1345@batcomputer.tn.cornell.edu> <4196@drutx.ATT.COM> Reply-To: cute@sphinx.UUCP (John Cavallino) Distribution: world Organization: U Chicago Computation Center Lines: 16 Keywords: HFS, paths, pascal It seems that many people are interested in how to do this. I have posted some tested code (in pascal) to comp.sources.mac. It includes a function which takes a volume reference number, a file name and a directory ID and returns the full path. It checks for HFS vs. MFS and does the right thing in either case. It even attempts to salvage things if the file turns out to be too deeply nested for the full path to fit in a pascal string. Use and enjoy. Yours. John C. -- ...ihnp4!gargoyle!sphinx!cute (insert pithy quote here)