mirror of
https://github.com/Hopiu/lychee.git
synced 2026-04-06 22:40:58 +00:00
Handle path exclusions when walking directories
This commit is contained in:
parent
ee25adbed1
commit
5f7b3c42ea
1 changed files with 4 additions and 0 deletions
|
|
@ -233,6 +233,10 @@ impl Input {
|
|||
for entry in WalkBuilder::new(path).standard_filters(gitignore).hidden(true).build() {
|
||||
let entry = entry?;
|
||||
|
||||
if self.is_excluded_path(&entry.path().to_path_buf()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
match entry.file_type() {
|
||||
None => continue,
|
||||
Some(file_type) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue