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

Function find_instruction_file

crates/opencode-tool/src/read.rs:536–544  ·  view source on GitHub ↗
(dir: &Path)

Source from the content-addressed store, hash-verified

534}
535
536async fn find_instruction_file(dir: &Path) -> Option<PathBuf> {
537 for name in INSTRUCTION_FILES {
538 let path = dir.join(name);
539 if path.exists() && path.is_file() {
540 return Some(path);
541 }
542 }
543 None
544}

Callers 1

Calls 2

existsMethod · 0.80
is_fileMethod · 0.80

Tested by

no test coverage detected