MCPcopy Create free account
hub / github.com/f0rr0/oliphaunt / sorted_children

Function sorted_children

xtask/src/main.rs:9422–9430  ·  view source on GitHub ↗
(path: &Path)

Source from the content-addressed store, hash-verified

9420}
9421
9422fn 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
9432fn sorted_files(path: &Path) -> Result<Vec<PathBuf>> {
9433 let mut files = Vec::new();

Callers 3

copy_extension_sql_filesFunction · 0.85
stage_contrib_extensionFunction · 0.85
append_treeFunction · 0.85

Calls 1

pathMethod · 0.45

Tested by

no test coverage detected