From fc6734654c70e93464914f4369f9db38dc302a88 Mon Sep 17 00:00:00 2001 From: Chris Simpkins Date: Sun, 17 Dec 2023 15:32:27 -0500 Subject: [PATCH] default behavior: do not follow symbolic links makes this an explicit part of the builder definition, rather than relying on ignore lib default behavior --- src/lib/walk.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/lib/walk.rs b/src/lib/walk.rs index 1ed14d9..6a23b2c 100644 --- a/src/lib/walk.rs +++ b/src/lib/walk.rs @@ -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 { @@ -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 {