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

Method is_dir

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

Source from the content-addressed store, hash-verified

10 }
11
12 pub async fn is_dir<P: AsRef<Path>>(p: P) -> bool {
13 match fs::metadata(p).await {
14 Ok(m) => m.is_dir(),
15 Err(_) => false,
16 }
17 }
18
19 pub async fn is_file<P: AsRef<Path>>(p: P) -> bool {
20 match fs::metadata(p).await {

Callers 15

list_filesFunction · 0.80
search_recursiveFunction · 0.80
find_recursiveFunction · 0.80
load_projectMethod · 0.80
load_commands_from_dirFunction · 0.80
load_agents_from_dirFunction · 0.80
load_modes_from_dirFunction · 0.80
load_plugins_from_dirFunction · 0.80
glob_md_files_recursiveFunction · 0.80
search_with_limitMethod · 0.80
filesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected