Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Steve_Baker
on Aug 16, 2011
|
parent
|
context
|
favorite
| on:
You can list a directory containing 8 million file...
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.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: