1
0
Fork 0
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:
Samuel Štancl 2023-11-22 00:47:07 +01:00
parent 80e074f60b
commit 15c2c7d3f0
2 changed files with 146 additions and 0 deletions

View file

@ -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)?