Re:You can list a directory containing 8 million files But n...
by Steve_Baker on Tuesday August 16, 2011 @04:09PM
(#2892677)
How do you tell a file from a directory without stat()ing it? The d_type field is not portable. Since find and other tools like it need to recursively descend a directory tree, a stat() for each file to determine its type is unavoidable.
[ Parent
| on HN ]
There are no comments on this comment yet.