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

Method chroot_path_str

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

See [Fs::chroot_path].

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

Source from the content-addressed store, hash-verified

441
442 /// See [Fs::chroot_path].
443 pub fn chroot_path_str(&self, path: impl AsRef<Path>) -> String {
444 match self {
445 Self::Chroot(root) => append(root.path(), path).to_string_lossy().to_string(),
446 _ => path.as_ref().to_path_buf().to_string_lossy().to_string(),
447 }
448 }
449}
450
451impl Default for Fs {

Callers 3

process_pathFunction · 0.80
assert_pathsFunction · 0.80

Calls 4

to_stringMethod · 0.80
appendFunction · 0.70
pathMethod · 0.45
as_refMethod · 0.45

Tested by 1