Files
VirtWeb/virtweb_backend/src/utils/exec_utils.rs
Pierre HUBERT de33c7d521
All checks were successful
continuous-integration/drone/push Build is passing
Check if qemu-img is present before startup
2025-05-26 19:21:40 +02:00

11 lines
243 B
Rust

use std::path::Path;
/// Check the existence of a required program
pub fn check_program(name: &str, description: &str) {
let path = Path::new(name);
if !path.exists() {
panic!("{name} does not exist! {description}");
}
}