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

Function sorted_files

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

Source from the content-addressed store, hash-verified

9430}
9431
9432fn sorted_files(path: &Path) -> Result<Vec<PathBuf>> {
9433 let mut files = Vec::new();
9434 for entry in WalkDir::new(path) {
9435 let entry = entry.with_context(|| format!("walk {}", path.display()))?;
9436 if entry.file_type().is_file() {
9437 files.push(entry.path().to_path_buf());
9438 }
9439 }
9440 files.sort();
9441 Ok(files)
9442}
9443
9444fn copy_file(source: &Path, destination: &Path) -> Result<()> {
9445 ensure_file(source)?;

Callers 2

copy_extension_sql_dirFunction · 0.85
copy_tree_filteredFunction · 0.85

Calls 2

pushMethod · 0.80
pathMethod · 0.45

Tested by

no test coverage detected