Just rewrote @musllibc's glob() this afternoon (commit coming soon) - long overdue, but a new bug report pushed it forward.
-
-
On Linux at least, getdents64() will return the file type; if you're calling stat() just to determine if S_ISDIR(), those can be avoided too if type is DT_UNKNOWN.
-
Yes, and I use it when possible, but in the case of a/*/b, the stat (or possibly just access if GLOB_MARK isn't requested) is needed to ensure b even exists, if you don't recurse into each a/*.
End of conversation
New conversation -
-
-
NICE
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.