pub fn write<P, C>(path: P, contents: C) -> Result<()>where P: AsRef<Path> + Debug, C: AsRef<[u8]> + Debug,