MCPcopy Create free account
hub / github.com/delinoio/oss / write_runtime_executable

Function write_runtime_executable

crates/nodeup/tests/cli.rs:30–34  ·  view source on GitHub ↗
(path: impl AsRef<Path>, content: &str)

Source from the content-addressed store, hash-verified

28}
29
30fn write_runtime_executable(path: impl AsRef<Path>, content: &str) {
31 let path = path.as_ref();
32 fs::write(path, content).unwrap();
33 set_executable(path);
34}
35
36fn set_executable(path: &Path) {
37 #[cfg(unix)]

Calls 2

set_executableFunction · 0.85
writeFunction · 0.50

Tested by

no test coverage detected