MCPcopy Create free account
hub / github.com/codeinred/untree / touch_directory

Function touch_directory

lib/functions.rs:62–64  ·  view source on GitHub ↗

Create a directory, along with any parents that haven't been created

(path: &Path)

Source from the content-addressed store, hash-verified

60
61/// Create a directory, along with any parents that haven't been created
62pub 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

Callers 1

create_pathFunction · 0.85

Calls 1

onMethod · 0.80

Tested by

no test coverage detected