Function ensure_file_exist

Source
pub fn ensure_file_exist(file: &str) -> Result<(), Error>
Expand description

ensure a file exist,if not exist,create it!

ยงexample

assert_eq!(true,ensure_file_exist("D:\\a\\b\\test.txt"));