Show More
@@ -133,7 +133,8 b' pub fn init_module(py: Python, package: ' | |||
|
133 | 133 | last_normal_time: i64, |
|
134 | 134 | list_clean: bool, |
|
135 | 135 | list_ignored: bool, |
|
136 | list_unknown: bool | |
|
136 | list_unknown: bool, | |
|
137 | collect_traversed_dirs: bool | |
|
137 | 138 | ) |
|
138 | 139 | ), |
|
139 | 140 | )?; |
@@ -104,6 +104,7 b' pub fn status_wrapper(' | |||
|
104 | 104 | list_clean: bool, |
|
105 | 105 | list_ignored: bool, |
|
106 | 106 | list_unknown: bool, |
|
107 | collect_traversed_dirs: bool, | |
|
107 | 108 | ) -> PyResult<PyTuple> { |
|
108 | 109 | let bytes = root_dir.extract::<PyBytes>(py)?; |
|
109 | 110 | let root_dir = get_path_from_bytes(bytes.data(py)); |
@@ -134,6 +135,7 b' pub fn status_wrapper(' | |||
|
134 | 135 | list_clean, |
|
135 | 136 | list_ignored, |
|
136 | 137 | list_unknown, |
|
138 | collect_traversed_dirs, | |
|
137 | 139 | }, |
|
138 | 140 | ) |
|
139 | 141 | .map_err(|e| handle_fallback(py, e))?; |
@@ -170,6 +172,7 b' pub fn status_wrapper(' | |||
|
170 | 172 | list_clean, |
|
171 | 173 | list_ignored, |
|
172 | 174 | list_unknown, |
|
175 | collect_traversed_dirs, | |
|
173 | 176 | }, |
|
174 | 177 | ) |
|
175 | 178 | .map_err(|e| handle_fallback(py, e))?; |
@@ -224,6 +227,7 b' pub fn status_wrapper(' | |||
|
224 | 227 | list_clean, |
|
225 | 228 | list_ignored, |
|
226 | 229 | list_unknown, |
|
230 | collect_traversed_dirs, | |
|
227 | 231 | }, |
|
228 | 232 | ) |
|
229 | 233 | .map_err(|e| handle_fallback(py, e))?; |
@@ -256,6 +260,7 b' fn build_response(' | |||
|
256 | 260 | let unknown = collect_pybytes_list(py, status_res.unknown.as_ref()); |
|
257 | 261 | let lookup = collect_pybytes_list(py, lookup.as_ref()); |
|
258 | 262 | let bad = collect_bad_matches(py, status_res.bad.as_ref())?; |
|
263 | let traversed = collect_pybytes_list(py, status_res.traversed.as_ref()); | |
|
259 | 264 | let py_warnings = PyList::new(py, &[]); |
|
260 | 265 | for warning in warnings.iter() { |
|
261 | 266 | // We use duck-typing on the Python side for dispatch, good enough for |
@@ -292,6 +297,7 b' fn build_response(' | |||
|
292 | 297 | unknown.into_object(), |
|
293 | 298 | py_warnings.into_object(), |
|
294 | 299 | bad.into_object(), |
|
300 | traversed.into_object(), | |
|
295 | 301 | ][..], |
|
296 | 302 | )) |
|
297 | 303 | } |
General Comments 0
You need to be logged in to leave comments.
Login now