pub struct DirBuilder { /* private fields */ }
Available on crate feature
tokio
only.Expand description
A builder for creating directories in various manners.
This is a wrapper around tokio::fs::DirBuilder
.
Implementations§
source§impl DirBuilder
impl DirBuilder
sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new set of options with default mode/security settings for all platforms and also non-recursive.
This is a wrapper version of tokio::fs::DirBuilder::new
§Examples
use fs_err::tokio::DirBuilder;
let builder = DirBuilder::new();
sourcepub fn recursive(&mut self, recursive: bool) -> &mut Self
pub fn recursive(&mut self, recursive: bool) -> &mut Self
Indicates whether to create directories recursively (including all parent directories). Parents that do not exist are created with the same security and permissions settings.
Wrapper around tokio::fs::DirBuilder::recursive
.
Trait Implementations§
source§impl Debug for DirBuilder
impl Debug for DirBuilder
source§impl Default for DirBuilder
impl Default for DirBuilder
source§fn default() -> DirBuilder
fn default() -> DirBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DirBuilder
impl RefUnwindSafe for DirBuilder
impl Send for DirBuilder
impl Sync for DirBuilder
impl Unpin for DirBuilder
impl UnwindSafe for DirBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more