Skip to content

Commit

Permalink
Rename CreateDirOptions to DirBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Apr 14, 2015
1 parent 646d41c commit d8bc0fe
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions text/0000-io-fs-2.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -324,9 +324,9 @@ permission bits on unix or security attributes on Windows. This RFC proposes
adding the following API to `std::fs`:

```rust
pub struct CreateDirOptions { ... }
pub struct DirBuilder { ... }

impl CreateDirOptions {
impl DirBuilder {
/// Creates a new set of options with default mode/security settings for all
/// platforms and also non-recursive.
pub fn new() -> Self;
Expand All @@ -342,18 +342,18 @@ impl CreateDirOptions {
}

mod os::unix::fs {
pub trait CreateDirOptionsExt {
pub trait DirBuilderExt {
fn mode(&mut self, mode: raw::mode_t) -> &mut Self;
}
impl CreateDirOptionsExt for CreateDirOptions { ... }
impl DirBuilderExt for DirBuilder { ... }
}

mod os::windows::fs {
// once a `SECURITY_ATTRIBUTES` abstraction exists, this will be added
pub trait CreateDirOptionsExt {
pub trait DirBuilderExt {
fn security_attributes(&mut self, ...) -> &mut Self;
}
impl CreateDirOptionsExt for CreateDirOptions { ... }
impl DirBuilderExt for DirBuilder { ... }
}
```

Expand All @@ -373,7 +373,7 @@ pub fn template<P: AsRef<Path>>(&mut self, path: P) -> &mut Self;
```

At this time, however, it it not proposed to add this method to
`CreateDirOptions`.
`DirBuilder`.

## Adding `FileType`

Expand Down

0 comments on commit d8bc0fe

Please sign in to comment.