MCPcopy Create free account
hub / github.com/Noumena-Network/code / create_kernel_runtime_dir

Function create_kernel_runtime_dir

rust/py_repl_host/src/main.rs:400–411  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

398}
399
400fn create_kernel_runtime_dir() -> io::Result<PathBuf> {
401 let now = SystemTime::now()
402 .duration_since(UNIX_EPOCH)
403 .unwrap_or_default()
404 .as_nanos();
405 let dir = env::temp_dir().join(format!(
406 "ncode-py-repl-host-{}-{now}",
407 std::process::id()
408 ));
409 fs::create_dir_all(&dir)?;
410 Ok(dir)
411}
412
413fn format_stderr_tail(stderr_tail: &Arc<Mutex<VecDeque<String>>>) -> String {
414 let Ok(lines) = stderr_tail.lock() else {

Callers 1

spawn_kernelFunction · 0.85

Calls 1

nowFunction · 0.85

Tested by

no test coverage detected