[pack/unpack] add missing file.

This commit is contained in:
Joe Thornber 2020-06-09 14:59:13 +01:00
parent 409a660082
commit 821628b004

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}
}
}