pub fn write_new<P: AsRef<Path>, C: AsRef<[u8]>>( path: P, contents: C, ) -> Result<()>
Write out a new file (like std::fs::write but fails if file already exists)
std::fs::write