MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / do_file_time_assert

Method do_file_time_assert

crates/opencode-tool/src/tool.rs:489–495  ·  view source on GitHub ↗
(&self, file_path: String)

Source from the content-addressed store, hash-verified

487 }
488
489 pub async fn do_file_time_assert(&self, file_path: String) -> Result<(), ToolError> {
490 if let Some(ref callback) = self.file_time_assert {
491 callback(self.session_id.clone(), file_path).await
492 } else {
493 Ok(())
494 }
495 }
496
497 pub fn with_file_time_read<F, Fut>(mut self, callback: F) -> Self
498 where

Callers 2

executeMethod · 0.80
executeMethod · 0.80

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected