mirror of
https://github.com/jht5945/finding.git
synced 2025-12-27 21:20:05 +08:00
add --skip-dot-dir
This commit is contained in:
@@ -219,6 +219,9 @@ fn find_text_files(options: &Options, dir_path: &Path) {
|
||||
}
|
||||
return false;
|
||||
}
|
||||
if options.skip_dot_dir && p_str.contains("/.") {
|
||||
return false;
|
||||
}
|
||||
if options.skip_link_dir && is_symlink(p) {
|
||||
if options.verbose {
|
||||
print_lastline("");
|
||||
|
||||
Reference in New Issue
Block a user