pub fn write_sync<I, O>(
input: I,
output: Option<O>,
ext: &str,
contents: impl AsRef<[u8]>,
) -> Result<()>
Expand description
Write specified or same location.
ext
: Ifoutput
is unspecified, rewrite theinput
extension and make it theoutput
. In that case, the extension.
§Errors
- Conflict error due to simultaneous dir creation.
- No write permission to the given path.