Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!ucsd!ucsdhub!hp-sdd!hplabs!hpda!hpcuhc!hpausla!brian From: brian@hpausla.aso.hp.com (Brian Coogan) Newsgroups: alt.sources Subject: Re: Re: ftw (was Re: Anything faster than stat(S)? ...) Message-ID: <2400002@hpausla.aso.hp.com> Date: 12 Dec 89 01:16:06 GMT References: <10299@stag.math.lsa.umich.edu> Organization: HP Australian Software Operation Lines: 6 Joe Pruett writes in alt.sources: > A quick hack I've used in a directory traversal program is to use the > link count of . to determine how many subdirectories there are. A clever trick. Worth keeping in mind that it won't work for symbolic links (usually you don't want it to anyway).