MCPcopy Create free account
hub / github.com/aws/amazon-q-developer-cli / create_dir

Method create_dir

crates/chat-cli/src/os/fs/mod.rs:136–142  ·  view source on GitHub ↗
(&self, path: impl AsRef<Path>)

Source from the content-addressed store, hash-verified

134 }
135
136 pub async fn create_dir(&self, path: impl AsRef<Path>) -> io::Result<()> {
137 match self {
138 Self::Real => fs::create_dir(path).await,
139 Self::Chroot(root) => fs::create_dir(append(root.path(), path)).await,
140 Self::Fake(_) => Err(io::Error::other("unimplemented")),
141 }
142 }
143
144 pub async fn create_dir_all(&self, path: impl AsRef<Path>) -> io::Result<()> {
145 match self {

Callers 2

test_fakeFunction · 0.80
test_realFunction · 0.80

Calls 2

appendFunction · 0.70
pathMethod · 0.45

Tested by 2

test_fakeFunction · 0.64
test_realFunction · 0.64