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

Function ensure_file

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

Source from the content-addressed store, hash-verified

9477}
9478
9479fn ensure_file(path: &Path) -> Result<()> {
9480 if !path.is_file() {
9481 bail!("expected file missing: {}", path.display());
9482 }
9483 Ok(())
9484}
9485
9486#[cfg(unix)]
9487fn is_executable(path: &Path) -> bool {

Calls

no outgoing calls

Tested by

no test coverage detected