Struct cap_std::fs::DirBuilder[][src]

pub struct DirBuilder { /* fields omitted */ }
Expand description

A builder used to create directories in various manners.

This corresponds to std::fs::DirBuilder.

Unlike std::fs::DirBuilder, this API has no DirBuilder::create, because creating directories requires a capability. Use Dir::create_dir_with instead.

We need to define our own version because the libstd `DirBuilder` doesn't have public accessors that we can use.

Implementations

Creates a new set of options with default mode/security settings for all platforms and also non-recursive.

This corresponds to std::fs::DirBuilder::new.

Indicates that directories should be created recursively, creating all parent directories.

This corresponds to std::fs::DirBuilder::recursive.

Return the DirOptions contained in this DirBuilder.

Return the value of the recursive flag.

Trait Implementations

Formats the value using the given formatter. Read more

Sets the mode to create new directories with. This option defaults to 0o777. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.