[pack/unpack] add missing file.
This commit is contained in:
parent
409a660082
commit
821628b004
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