pub fn dump_file(name: &str, buf: &[u8])
Write the buffer into the given file in the data dir.
If the file exists, it will be overwritten. If it doesn’t exist, it will be created.