MCPcopy Create free account
hub / github.com/Louisym/MiniCC / temp_path

Function temp_path

rust/crates/runtime/src/file_ops.rs:486–492  ·  view source on GitHub ↗
(name: &str)

Source from the content-addressed store, hash-verified

484 use super::{edit_file, glob_search, grep_search, read_file, write_file, GrepSearchInput};
485
486 fn temp_path(name: &str) -> std::path::PathBuf {
487 let unique = SystemTime::now()
488 .duration_since(UNIX_EPOCH)
489 .expect("time should move forward")
490 .as_nanos();
491 std::env::temp_dir().join(format!("clawd-native-{name}-{unique}"))
492 }
493
494 #[test]
495 fn reads_and_writes_files() {

Callers 3

reads_and_writes_filesFunction · 0.70
edits_file_contentsFunction · 0.70

Calls 2

expectMethod · 0.80
temp_dirFunction · 0.70

Tested by 3

reads_and_writes_filesFunction · 0.56
edits_file_contentsFunction · 0.56