Skip to content

Commit d8bc0fe

Browse files
committed
Rename CreateDirOptions to DirBuilder
1 parent 646d41c commit d8bc0fe

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

text/0000-io-fs-2.1.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -324,9 +324,9 @@ permission bits on unix or security attributes on Windows. This RFC proposes
324324
adding the following API to `std::fs`:
325325

326326
```rust
327-
pub struct CreateDirOptions { ... }
327+
pub struct DirBuilder { ... }
328328

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

344344
mod os::unix::fs {
345-
pub trait CreateDirOptionsExt {
345+
pub trait DirBuilderExt {
346346
fn mode(&mut self, mode: raw::mode_t) -> &mut Self;
347347
}
348-
impl CreateDirOptionsExt for CreateDirOptions { ... }
348+
impl DirBuilderExt for DirBuilder { ... }
349349
}
350350

351351
mod os::windows::fs {
352352
// once a `SECURITY_ATTRIBUTES` abstraction exists, this will be added
353-
pub trait CreateDirOptionsExt {
353+
pub trait DirBuilderExt {
354354
fn security_attributes(&mut self, ...) -> &mut Self;
355355
}
356-
impl CreateDirOptionsExt for CreateDirOptions { ... }
356+
impl DirBuilderExt for DirBuilder { ... }
357357
}
358358
```
359359

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

375375
At this time, however, it it not proposed to add this method to
376-
`CreateDirOptions`.
376+
`DirBuilder`.
377377

378378
## Adding `FileType`
379379

0 commit comments

Comments
 (0)