MCPcopy Create free account
hub / github.com/Proryanator/encoder-benchmark / is_installed

Function is_installed

environment/src/env.rs:23–30  ·  view source on GitHub ↗
(program: &str)

Source from the content-addressed store, hash-verified

21}
22
23fn is_installed(program: &str) -> bool {
24 return Command::new(program)
25 // important cause we don't want the help message to output here
26 .stdout(Stdio::null())
27 .stderr(Stdio::null())
28 .spawn()
29 .is_ok();
30}

Callers 2

is_ffmpeg_installedFunction · 0.85
is_ffprobe_installedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected