(path: &Path)
| 9420 | } |
| 9421 | |
| 9422 | fn sorted_children(path: &Path) -> Result<Vec<PathBuf>> { |
| 9423 | let mut children = fs::read_dir(path) |
| 9424 | .with_context(|| format!("read directory {}", path.display()))? |
| 9425 | .map(|entry| entry.map(|entry| entry.path())) |
| 9426 | .collect::<std::result::Result<Vec<_>, _>>() |
| 9427 | .with_context(|| format!("read child in {}", path.display()))?; |
| 9428 | children.sort(); |
| 9429 | Ok(children) |
| 9430 | } |
| 9431 | |
| 9432 | fn sorted_files(path: &Path) -> Result<Vec<PathBuf>> { |
| 9433 | let mut files = Vec::new(); |
no test coverage detected