Skip to content

Commit

Permalink
default behavior: do not follow symbolic links
Browse files Browse the repository at this point in the history
makes this an explicit part of the builder definition, rather than relying on ignore lib default behavior
  • Loading branch information
chrissimpkins committed Dec 17, 2023
1 parent b449ba0 commit fc67346
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/lib/walk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ impl Walker {
.require_git(true)
.max_depth(args.depth)
.git_global(false)
.git_exclude(false);
.git_exclude(false)
.follow_links(false);

// sort by file path string
if args.name {
Expand Down Expand Up @@ -116,7 +117,8 @@ impl ParallelWalker {
.require_git(true)
.max_depth(args.depth)
.git_global(false)
.git_exclude(false);
.git_exclude(false)
.follow_links(false);

// filter files on user-defined globs
match &args.glob {
Expand Down

0 comments on commit fc67346

Please sign in to comment.