Set the maximum traversal depth. # Arguments `depth` - Maximum depth (0 = only root level) # Example ```rust use atomic_core::output::repo::TreeCollectOptions; let opts = TreeCollectOptions::new().max_depth(2); assert_eq!(opts.max_depth, Some(2)); ```
(mut self, depth: usize)
| 208 | /// assert_eq!(opts.max_depth, Some(2)); |
| 209 | /// ``` |
| 210 | pub fn max_depth(mut self, depth: usize) -> Self { |
| 211 | self.max_depth = Some(depth); |
| 212 | self |
| 213 | } |
| 214 | |
| 215 | /// Set whether to collect directories. |
| 216 | /// |
no outgoing calls