Function cargo_util::paths::write

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

Writes a file to disk.

Equivalent to std::fs::write with better error messages.