Merge branch 'master' into 2020-05-27-check-data-space-map
This commit is contained in:
commit
549c0b9499
8
src/file_utils.rs
Normal file
8
src/file_utils.rs
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
use std::fs;
|
||||||
|
|
||||||
|
pub fn file_exists(path: &str) -> bool {
|
||||||
|
return match fs::metadata(path) {
|
||||||
|
Ok(_) => {true}
|
||||||
|
Err(_) => {false}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user