b65908fac2
Passed a closure with the `stat()` function call to `matches()`. This will traverse through all patterns and try to match using the path only, if a `file_mode` is needed, it will run the closure. This means that if we exclude a file with the `MatchType::ANY_FILE_TYPE`, we will skip it without running `stat()` on it. As we updated the `matches()` function, we also updated all the invocations of it. Added `pathpatterns` crate to local overrides in cargo.toml. Signed-off-by: Gabriel Goller <g.goller@proxmox.com>