cjeffery@arizona.edu (Clinton Jeffery) (02/06/89)
Is there an easy way to find out if a filename refers to a directory in Aztec C? The stat() function is a pretty sad subset of the "real thing". Any and all suggestions appreciated; please email! Thanks, -- | Clint Jeffery, University of Arizona Department of Computer Science | cjeffery@arizona.edu -or- {noao allegra}!arizona!cjeffery --
ditto@cbmvax.UUCP (Michael "Ford" Ditto) (02/07/89)
In article <9048@megaron.arizona.edu> cjeffery@arizona.edu (Clinton Jeffery) writes: >Is there an easy way to find out if a filename refers to a directory >in Aztec C? Use the Examine() function, and look at the fib_DirEntryType field of the FileInfoBlock. If it is positive then the given filename is a directory, and you can then repeatedly call ExNext() on the same FileInfoBlock to discover the files it contains. -- -=] Ford [=- "The number of Unix installations (In Real Life: Mike Ditto) has grown to 10, with more expected." ford@kenobi.cts.com - The Unix Programmer's Manual, ...!sdcsvax!crash!elgar!ford 2nd Edition, June, 1972. ditto@cbmvax.commodore.com