Function simpleio::file_exists
source · pub fn file_exists(path: &Path) -> bool
Expand description
Returns true if the file exists, false if not. Directories are also files on unix.
§Example
use simpleio as sio;
//asuming home is set and will return a value
println!("{}", sio::file_exists(sio::get_home().unwrap().as_path()));