I use std::fs::File::create
with relative path to cteate file,
but when relative path contern a don't exist directory , create will failed .
such as
use std::fs::File;
fn main(){
let f = File::create("./open/1.txt").unwrap();//will error
// open is disn't exist
}
why this function can not direct create what I specify the disn‘t exist directory and file
Is it mean I need create it one by one ?