perf: Avoid unnecessary syscall for ignore-contain
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Instead of calling `is_dir` on the path, call it on the file_type of the DirEntry, since we should already have that information without needing to do another syscall.
authored by Thayne McCombs · committed by Thayne McCombs · parent b691572 · Browse files · 1 file+11 added−5 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Trailers
- Fixes: #1913
Diff stats
1 file+11 added−5 removed
- other:+11 added−5 removed