MCPcopy Index your code
hub / github.com/ChrisFeldmeier/OpenCodeRust / exists

Method exists

crates/opencode-util/src/filesystem.rs:8–10  ·  view source on GitHub ↗
(p: P)

Source from the content-addressed store, hash-verified

6
7impl Filesystem {
8 pub async fn exists<P: AsRef<Path>>(p: P) -> bool {
9 fs::metadata(p).await.is_ok()
10 }
11
12 pub async fn is_dir<P: AsRef<Path>>(p: P) -> bool {
13 match fs::metadata(p).await {

Callers 15

resolve_input_pathFunction · 0.80
is_git_repoFunction · 0.80
load_from_fileMethod · 0.80
load_globalMethod · 0.80
load_managed_configMethod · 0.80
detect_worktree_stopFunction · 0.80
find_upFunction · 0.80
update_configFunction · 0.80
update_global_configFunction · 0.80
install_npm_packagesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected