[comp.sys.mac.programmer] Determining number of files on a hard disk

blob@apple.com (Brian Bechtel) (05/02/90)

In article <373@taurus.bucknell.edu> fikree@taurus.bucknell.edu (mateen 
fikree) writes:
> Anyone know how to determine the number of files on the hard disk, 
without
> scanning the disk?

PBHGetVInfo returns the number of files on a volume in the ioVFilCnt 
field.  The number of directories on the volume is in the ioVDirCnt field.

Note that these values will be incorrect (0) on an ISO 9660 or High Sierra 
CD-ROM.

--Brian Bechtel     blob@apple.com     "My opinion, not Apple's"