MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / sibling_temp_dir

Function sibling_temp_dir

crates/openshell-server/src/certgen.rs:769–777  ·  view source on GitHub ↗
(dir: &Path)

Source from the content-addressed store, hash-verified

767}
768
769fn sibling_temp_dir(dir: &Path) -> PathBuf {
770 // Use a sibling so std::fs::rename succeeds (same filesystem).
771 let mut name = dir
772 .file_name()
773 .map(std::ffi::OsStr::to_os_string)
774 .unwrap_or_default();
775 name.push(".certgen.tmp");
776 dir.with_file_name(name)
777}
778
779// ────────────────────────────── Shared utility ─────────────────────────────
780

Callers 4

write_local_bundleFunction · 0.85
write_local_tls_bundleFunction · 0.85
write_local_jwt_bundleFunction · 0.85

Calls 1

pushMethod · 0.80