thin-provisioning-tools/src/file_utils.rs
2020-06-09 14:59:13 +01:00

9 lines
151 B
Rust

use std::fs;
pub fn file_exists(path: &str) -> bool {
return match fs::metadata(path) {
Ok(_) => {true}
Err(_) => {false}
}
}