boortz@sics.se (Kent Boortz) (08/17/90)
I try to find the directory ID of a directory that is located in the top directory/volume. Could anyone give me some advice, this code does not work. Instead it gives me the working directory. GetVol(volName,&volRefNum); ci->fileParam.ioFDirIndex = 0; ci->fileParam.ioDirID = 0; ci->fileParam.ioVRefNum = volRefNum; ci->fileParam.ioNamePtr = (StringPtr)"\pMyDirName"; if ((PBGetCatInfo(ci, false) == noErr) && (ci->fileParam.ioFlAttrib & ioDirMask)) return ci->fileParam.ioDirID; Kent Boortz boortz@sics.se