@@ -324,9 +324,9 @@ permission bits on unix or security attributes on Windows. This RFC proposes
324
324
adding the following API to ` std::fs ` :
325
325
326
326
``` rust
327
- pub struct CreateDirOptions { ... }
327
+ pub struct DirBuilder { ... }
328
328
329
- impl CreateDirOptions {
329
+ impl DirBuilder {
330
330
/// Creates a new set of options with default mode/security settings for all
331
331
/// platforms and also non-recursive.
332
332
pub fn new () -> Self ;
@@ -342,18 +342,18 @@ impl CreateDirOptions {
342
342
}
343
343
344
344
mod os :: unix :: fs {
345
- pub trait CreateDirOptionsExt {
345
+ pub trait DirBuilderExt {
346
346
fn mode (& mut self , mode : raw :: mode_t ) -> & mut Self ;
347
347
}
348
- impl CreateDirOptionsExt for CreateDirOptions { ... }
348
+ impl DirBuilderExt for DirBuilder { ... }
349
349
}
350
350
351
351
mod os :: windows :: fs {
352
352
// once a `SECURITY_ATTRIBUTES` abstraction exists, this will be added
353
- pub trait CreateDirOptionsExt {
353
+ pub trait DirBuilderExt {
354
354
fn security_attributes (& mut self , ... ) -> & mut Self ;
355
355
}
356
- impl CreateDirOptionsExt for CreateDirOptions { ... }
356
+ impl DirBuilderExt for DirBuilder { ... }
357
357
}
358
358
```
359
359
@@ -373,7 +373,7 @@ pub fn template<P: AsRef<Path>>(&mut self, path: P) -> &mut Self;
373
373
```
374
374
375
375
At this time, however, it it not proposed to add this method to
376
- ` CreateDirOptions ` .
376
+ ` DirBuilder ` .
377
377
378
378
## Adding ` FileType `
379
379
0 commit comments