Merge branch 'master' into 2020-05-27-check-data-space-map

This commit is contained in:
Joe Thornber 2020-06-10 10:15:16 +01:00
commit 549c0b9499

8
src/file_utils.rs Normal file
View File

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