(path: &str)
| 196 | /// ``` |
| 197 | #[must_use] |
| 198 | pub fn extract_parent(path: &str) -> &str { |
| 199 | std::path::Path::new(path) |
| 200 | .parent() |
| 201 | .and_then(|p| p.to_str()) |
| 202 | .unwrap_or("") |
| 203 | } |
| 204 | |
| 205 | /// Return all non-root ancestor directories in parent-first order. |
| 206 | /// |
no test coverage detected