pub fn write_file( dest: &str, buf: &[u8], info: &OutputInfo) -> Result<(), MoshError>
Writes a new file from the provided buffer
It may fail if parameters are invalid or due I/O error.