Skip to content

Commit 42909e2

Browse files
committed
fix: Include directories in the file crawler
1 parent a4d15d2 commit 42909e2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/data_provider.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,9 @@ fn traverse_file_tree(dir_path: &str, excludes: &[String]) -> Vec<String> {
109109
}
110110

111111
if file_type.is_dir() {
112-
stack.push(subpath.to_str().unwrap_or("").to_string());
112+
let path = subpath.to_str().unwrap_or("").to_string();
113+
stack.push(path.to_string());
114+
file_paths.push(path.to_string());
113115
} else if let Some(file_path) = subpath.to_str() {
114116
file_paths.push(file_path.to_string());
115117
}

0 commit comments

Comments
 (0)