summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorSebastian Thiel <sebastian.thiel@icloud.com>2021-12-27 11:04:51 +0800
committerSebastian Thiel <sebastian.thiel@icloud.com>2021-12-27 11:14:32 +0800
commit26d65145650cc3aac4ad540fdf04e95e139812e3 (patch)
tree988efe04d255c6a8c14f3edcfd6675928ce6b528 /src/main.rs
parentc27da8b9bf3d2ea091ff9267d2e96df05a17bf05 (diff)
feat: Add `--ignore-dirs` option, with useful default on linux (#116)
On linux there are a few directories which shouldn't be traversed by default as they may cause hangs and blocking. With the new argument it's possible to specify absolute directories to not enter during traversal, with a default set to avoid problematic directories on linux right away.
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index d116bbd..d8720a3 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -64,6 +64,7 @@ fn main() -> Result<()> {
count_hard_links: opt.count_hard_links,
sorting: TraversalSorting::None,
cross_filesystems: !opt.stay_on_filesystem,
+ ignore_dirs: opt.ignore_dirs,
};
let res = match opt.command {
#[cfg(any(feature = "tui-unix", feature = "tui-crossplatform"))]