pub trait DirBuilderExt {
fn mode(&mut self, mode: u32) -> &mut Self;
}
Expand description
Sets the mode to create new directories with.
This option defaults to 0o777.
use tokio::fs::DirBuilder;
use tokio::fs::os::unix::DirBuilderExt;
let mut builder = DirBuilder::new();
builder.mode(0o775);