Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Rust
check if a file exists rust
shintaroid
Programming language:
Rust
2021-02-01 00:31:03
0
Q:
check if a file exists rust
user1998586
Code:
Rust
2021-02-01 00:39:18
use std::path::Path; fn main() { println!("{}", Path::new("/etc/hosts").exists()); }
1
Tags
file
check
New to Communities?
Join the community