mirror of
https://github.com/archtechx/todo-system.git
synced 2025-12-12 00:54:03 +00:00
add readme, ignore some directories
This commit is contained in:
parent
80e074f60b
commit
15c2c7d3f0
2 changed files with 146 additions and 0 deletions
13
src/main.rs
13
src/main.rs
|
|
@ -129,6 +129,19 @@ fn scan_dir(path: &Path, entries: &mut Vec<Entry>) -> io::Result<()> {
|
|||
let path = entry.path();
|
||||
|
||||
if path.is_dir() {
|
||||
// todo make these configurable
|
||||
if path.ends_with("node_modules") {
|
||||
continue;
|
||||
}
|
||||
|
||||
if path.ends_with("vendor") {
|
||||
continue;
|
||||
}
|
||||
|
||||
if path.ends_with(".git") {
|
||||
continue;
|
||||
}
|
||||
|
||||
scan_dir(path.as_path(), entries)?
|
||||
} else {
|
||||
scan_file(path.as_path(), entries)?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue