Rust 中的
mkdir -p <dir>
-p
mkdir
<dir>
有没有简单的方法可以使用 Rust 标准库来做到这一点?
那就是
create_dir_all
std::fs::create_dir_all(dir_path)