fedimint_core::util

Function write_new

Source
pub fn write_new<P: AsRef<Path>, C: AsRef<[u8]>>(
    path: P,
    contents: C,
) -> Result<()>
Expand description

Write out a new file (like std::fs::write but fails if file already exists)