[comp.sys.mac.programmer] Trying to determine if a file is a file or a folder...

jtn@zodiac.ADS.COM (John Nelson) (11/08/89)

Question:

I'm using GetFile to iterate through all the files in a directory (or
folder if you like) to process them.  However, in order to do this I
must distinguish between files and folders.  Is there a way to tell
(in an application) if a file is a file or a folder?

There are some low-level PB routines but I'd hate to have to muck with
the parameter blocks.  If ncessary though I guess I'll have to.  Any
guidence?  The Inside Mac and Mac Revealed books say absolutely
nothing on the subject.

An email reply would be nice... I can't keep up with this newgroups.  

Thanks!



-- 

John T. Nelson			UUCP: sun!sundc!potomac!jtn
Advanced Decision Systems	Internet:  jtn@potomac.ads.com
1500 Wilson Blvd #512; Arlington, VA 22209-2401		(703) 243-1611