diff --git a/src/file_utils.rs b/src/file_utils.rs new file mode 100644 index 0000000..9768bb8 --- /dev/null +++ b/src/file_utils.rs @@ -0,0 +1,8 @@ +use std::fs; + +pub fn file_exists(path: &str) -> bool { + return match fs::metadata(path) { + Ok(_) => {true} + Err(_) => {false} + } +}