Verifique se um arquivo existe ferrugem
use std::path::Path;
fn main() {
println!("{}", Path::new("/etc/hosts").exists());
}
ali ahmed
use std::path::Path;
fn main() {
println!("{}", Path::new("/etc/hosts").exists());
}