From 8451789da5211c8075ffef2b47461e03e508878d Mon Sep 17 00:00:00 2001 From: Dylan Frankland Date: Mon, 26 Aug 2019 12:47:15 -0700 Subject: [PATCH 1/4] Expose fs::create_dir_all --- src/fs/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/fs/mod.rs b/src/fs/mod.rs index dd3525e..8d98330 100644 --- a/src/fs/mod.rs +++ b/src/fs/mod.rs @@ -32,6 +32,7 @@ pub use std::fs::{FileType, Metadata, Permissions}; pub use canonicalize::canonicalize; pub use copy::copy; pub use create_dir::create_dir; +pub use create_dir_all::create_dir_all; pub use hard_link::hard_link; pub use metadata::metadata; pub use read::read; @@ -49,6 +50,7 @@ pub use write::write; mod canonicalize; mod copy; mod create_dir; +mod create_dir_all; mod dir_builder; mod dir_entry; mod file; From c21e38109872da161379ff6aac71fb591a744753 Mon Sep 17 00:00:00 2001 From: Dylan Frankland Date: Mon, 26 Aug 2019 12:50:06 -0700 Subject: [PATCH 2/4] Remove unused import from fs::create_dir_all --- src/fs/create_dir_all.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fs/create_dir_all.rs b/src/fs/create_dir_all.rs index 413f5f6..e78896e 100644 --- a/src/fs/create_dir_all.rs +++ b/src/fs/create_dir_all.rs @@ -1,5 +1,5 @@ use std::fs; -use std::path::{Path, PathBuf}; +use std::path::Path; use crate::task::blocking; use crate::io; From 2fc6610d6deac28381be049a8884c51c86a378dc Mon Sep 17 00:00:00 2001 From: Dylan Frankland Date: Mon, 26 Aug 2019 12:54:55 -0700 Subject: [PATCH 3/4] Update CHANGELOG.md --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0b26e8b..2fbe971 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://book.async.rs/overview ## [Unreleased] +- Expose `fs::create_dir_all` + # [0.99.4] - 2019-08-21 ## Changes From d47f7d3e9214d080b2e9b5fcfd90eea40a1533b5 Mon Sep 17 00:00:00 2001 From: Dylan Frankland Date: Mon, 26 Aug 2019 12:59:30 -0700 Subject: [PATCH 4/4] rustfmt fs::create_dir_all --- src/fs/create_dir_all.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fs/create_dir_all.rs b/src/fs/create_dir_all.rs index e78896e..b63c362 100644 --- a/src/fs/create_dir_all.rs +++ b/src/fs/create_dir_all.rs @@ -1,8 +1,8 @@ use std::fs; use std::path::Path; -use crate::task::blocking; use crate::io; +use crate::task::blocking; /// Creates a new, empty directory and all of its parents if they are missing. ///