Path: utzoo!attcan!uunet!seismo!sundc!pitstop!sun!amdahl!apple!darin From: darin@Apple.COM (Darin Adler) Newsgroups: comp.sys.mac.programmer Subject: Re: PBHGetFInfo modifies ioDirID Message-ID: <9835@apple.Apple.Com> Date: 13 May 88 10:40:40 GMT References: <3691@sdcc6.ucsd.EDU> <8998@apple.Apple.Com> Reply-To: darin@apple.UUCP (Darin Adler) Organization: Apple Lines: 24 In article <8998@apple.Apple.Com> darin@apple.UUCP (Darin Adler) I wrote: > In article <3691@sdcc6.ucsd.EDU> ir10@sdcc6.ucsd.EDU (Donald R. Fredkin) writes: > > Does anyone know why PBHGetFInfo modifies the field ioDirID in the > > HParamBlockRec it is given? What, if anything, is the significance > > of modified value? > > The value returned in ioDirID is the id of the parent directory of the file, > i.e. the directory that contains it. This can be useful if you passed a > working directory in the ioVRefNum field. Whoops! I was completely mistaken here! The value returned in ioDirID is what is called the "file ID". This is a unique number assigned to each file on an HFS volume when it is created. It is created in the same way that a dirID is ... the volume starts with 1 and gives a new number to each new file or directory. As a matter of fact, there is only one set of numbers, shared by both files and directories. Sorry about the incorrect information. -- Darin Adler AppleLink:Adler4 UUCP: {sun,voder,nsc,mtxinu,dual}!apple!darin CSNET: darin@Apple.com