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

Method create_new

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

Source from the content-addressed store, hash-verified

126 }
127
128 pub async fn create_new(&self, path: impl AsRef<Path>) -> io::Result<fs::File> {
129 match self {
130 Self::Real => fs::File::create_new(path).await,
131 Self::Chroot(root) => fs::File::create_new(append(root.path(), path)).await,
132 Self::Fake(_) => Err(io::Error::other("unimplemented")),
133 }
134 }
135
136 pub async fn create_dir(&self, path: impl AsRef<Path>) -> io::Result<()> {
137 match self {

Callers 4

test_create_newFunction · 0.80
saveMethod · 0.80
loadMethod · 0.80
create_agentFunction · 0.80

Calls 2

appendFunction · 0.70
pathMethod · 0.45

Tested by 1

test_create_newFunction · 0.64