1
0
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:
2019-08-04 23:50:46 +08:00
parent 8772470264
commit 209963ebb2
2 changed files with 6 additions and 0 deletions

View File

@@ -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("");