Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
Steve_Baker
· 15y ago · 0 comments
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.
Comments
No comments yet.
Better HN