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

Method read_dir

crates/chat-cli/src/os/fs/mod.rs:400–406  ·  view source on GitHub ↗

Returns a stream over the entries within a directory. This is a proxy to [`tokio::fs::read_dir`].

(&self, path: impl AsRef<Path>)

Source from the content-addressed store, hash-verified

398 ///
399 /// This is a proxy to [`tokio::fs::read_dir`].
400 pub async fn read_dir(&self, path: impl AsRef<Path>) -> Result<fs::ReadDir, io::Error> {
401 match self {
402 Self::Real => fs::read_dir(path).await,
403 Self::Chroot(root) => fs::read_dir(append(root.path(), path)).await,
404 Self::Fake(_) => panic!("unimplemented"),
405 }
406 }
407
408 /// Returns the canonical, absolute form of a path with all intermediate
409 /// components normalized and symbolic links resolved.

Callers 8

process_pathFunction · 0.80
status_all_agentsFunction · 0.80
invokeMethod · 0.80
get_all_todosFunction · 0.80
loadMethod · 0.80
migrateFunction · 0.80

Calls 2

appendFunction · 0.70
pathMethod · 0.45