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

Method create_dir_all

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

Source from the content-addressed store, hash-verified

142 }
143
144 pub async fn create_dir_all(&self, path: impl AsRef<Path>) -> io::Result<()> {
145 match self {
146 Self::Real => fs::create_dir_all(path).await,
147 Self::Chroot(root) => fs::create_dir_all(append(root.path(), path)).await,
148 Self::Fake(_) => Err(io::Error::other("unimplemented")),
149 }
150 }
151
152 /// Attempts to open a file in read-only mode.
153 ///

Callers 15

newMethod · 0.80
test_fakeFunction · 0.80
test_realFunction · 0.80
ensure_config_fileFunction · 0.80
get_test_agentsFunction · 0.80
manual_initMethod · 0.80
test_path_opsFunction · 0.80
assert_pathsFunction · 0.80
invokeMethod · 0.80

Calls 2

appendFunction · 0.70
pathMethod · 0.45

Tested by 7

test_fakeFunction · 0.64
test_realFunction · 0.64
test_path_opsFunction · 0.64
setup_test_directoryFunction · 0.64