{"id":12610,"date":"2022-09-11T11:57:24","date_gmt":"2022-09-11T15:57:24","guid":{"rendered":"http:\/\/local.brightwhiz\/?post_type=snippets&p=12610"},"modified":"2022-09-11T11:57:26","modified_gmt":"2022-09-11T15:57:26","slug":"rust-create-directory-if-not-exists","status":"publish","type":"snippets","link":"http:\/\/local.brightwhiz\/snippets\/rust-create-directory-if-not-exists\/","title":{"rendered":"Rust Create Directory if Not Exists Code"},"content":{"rendered":"\n
Rust create directory if not exists example snippet:<\/p>\n\n\n\n
use std::fs;\n\nfn main() -> std::io::Result<()> {\n fs::create_dir_all("\/some\/dir")?;\n Ok(())\n}<\/code><\/pre>\n","protected":false},"comment_status":"open","ping_status":"closed","template":"","meta":[],"categories":[953,23,27,15,16],"tags":[350,471,515,544,572],"yoast_head":"\nRust Create Directory if Not Exists Code [Snippet]<\/title>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\n