🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.micro.mac
Article #6253

Re: Mac HFS & MFS directories

#6253
From: dwb
Date: Sat, 28 Jun 1986 12:07
34 lines
1622 bytes
1)  HFS and MFS may be distinguished by examing the word at 0x3f6.  If it
	is less than 0 HFS is not installed.  It is called FCBLen.  ANd
	currently holds the maximum # of bytes necessary for an param
	block.

2)  The following code will work on either HFS or MFS.  It's purpose is to
	scan all the files in the volume/directory indicated by vRN.  Remember
	that vRefNum's can normally be either true vRefNum's or dRefNum's.

	errno = noErr;
	for(i = 1 ; errno == noErr ; i++)
	{
		fcb.ioCompletion = (ProcPtr) 0;
		fcb.ioVRefNum = vRN;
		fcb.ioFDirIndex = i;
		fcb.ioFVersNum = 0;
		fcb.ioNamePtr = (StringPtr) FileName;
		if((errno = PBGetFInfo(&fcb, 0)) == noErr)
		{
			/* Play with file */
		}
	}

	By the way, that's Lightspeed C so you will probably have to change
	the field names to make it work.

3)  Get a copy of the Software Supplements from Apple.  They tell you lot's
	of neat things about HFS and the Mac in general.
-- 
	David W. Berry
	dwb@well.uucp			dwb.Delphi
	dwb.GEnie			293-0544.408.MaBell

	DOWN WITH FASCIST APPLE!
Technical Details
Message-ID: <1358@well.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!caip!sri-spam!nike!ucbcad!ucbvax!decvax!decwrl!glacier!well!dwb
References: <12112@amdcad.UUCP>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!caip!sri-spam!nike!ucbcad!ucbvax!decvax!decwrl!glacier!well!dwb
From: dwb@well.UUCP
Newsgroups: net.micro.mac
Subject: Re: Mac HFS & MFS directories
Message-ID: <1358@well.UUCP>
Date: Sat, 28-Jun-86 08:07:09 EDT
Article-I.D.: well.1358
Posted: Sat Jun 28 08:07:09 1986
Date-Received: Sun, 29-Jun-86 06:39:41 EDT
References: <12112@amdcad.UUCP>
Reply-To: dwb@well.UUCP (David W. Berry)
Organization: Whole Earth Lectronic Link, Sausalito CA
Lines: 34