pub fn write_file( dest: &str, data: &MoshData, options: &MoshOptions, ) -> Result<(), MoshError>
Writes a new file from the provided buffer
It may fail if parameters are invalid or due I/O error.