Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
std: Handle DT_DIR file types in
dirent
pointers
This "fast path" in `DirEntry::file_type` on Unix wasn't turning out to be so much of a fast path as the `DT_DIR` case wasn't handled, so directories fell back to using `lstat` instead. This commit adds the missing case to return quickly if a path is a directory and `DirEntry::file_type` is used.
- Loading branch information