Skip to content

Commit

Permalink
Handle path exclusions when walking directories
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-zahner committed Sep 15, 2024
1 parent d5622b3 commit a10ab07
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lychee-lib/src/types/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit a10ab07

Please sign in to comment.