ftw (was Re: Anything faster than stat(S)? ...)

Brian Coogan brian at hpausla.aso.hp.com
Tue Dec 12 12:16:06 AEST 1989


Joe Pruett <joey at tessi.UUCP> 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).



More information about the Alt.sources mailing list