I opened a PR on ripgrep https://github.com/BurntSushi/ripgrep/pull/1557 to add a filter_entry method to ignore::WalkBuilder. Once that lands we can go back to filtering files hidden by attribute on MacOS. An improved implementation of that, without needing unsafe or libc::stat is:
I opened a PR on ripgrep https://github.com/BurntSushi/ripgrep/pull/1557 to add a
filter_entry
method toignore::WalkBuilder
. Once that lands we can go back to filtering files hidden by attribute on MacOS. An improved implementation of that, without needingunsafe
orlibc::stat
is: