Method
create_dir
(&mut self, dst: impl AsRef<Utf8Path>)
Source from the content-addressed store, hash-verified
| 38 | /// Parent directories must be created using `create_dir` first. |
| 39 | #[allow(unused)] |
| 40 | pub fn create_dir(&mut self, dst: impl AsRef<Utf8Path>) -> anyhow::Result<()> { |
| 41 | self.writer |
| 42 | .add_directory(Utf8PathBuf::from_iter([self.root(), dst.as_ref()]), self.options) |
| 43 | .map_err(Into::into) |
| 44 | } |
| 45 | |
| 46 | /// `dst` is relative to the archive root. |
| 47 | /// Parent directories must be created using `create_dir` first. |
Callers
nothing calls this directly
Tested by
no test coverage detected