shintaroid
0
Q:

check if a file exists rust

use std::path::Path;

fn main() {
    println!("{}", Path::new("/etc/hosts").exists());
}
1

Tags

New to Communities?

Join the community