Function write_sync

Source
pub fn write_sync<I, O>(
    input: I,
    output: Option<O>,
    ext: &str,
    contents: impl AsRef<[u8]>,
) -> Result<()>
where I: AsRef<Path>, O: AsRef<Path>,
Expand description

Write specified or same location.

  • ext: If output is unspecified, rewrite the input extension and make it the output. In that case, the extension.

§Errors

  • Conflict error due to simultaneous dir creation.
  • No write permission to the given path.