Create a directory, along with any parents that haven't been created
(path: &Path)
| 60 | |
| 61 | /// Create a directory, along with any parents that haven't been created |
| 62 | pub fn touch_directory(path: &Path) -> Result<()> { |
| 63 | Ok(create_dir_all(path).context(CreateDirectory.on(path))?) |
| 64 | } |
| 65 | |
| 66 | /// Create either a file (for `kind == PathKind::File`) or a directory (for |
| 67 | /// `kind == PathKind::Directory`). Provides additional options in the form of |