Function dump_file

Source
pub fn dump_file(name: &str, buf: &[u8])
Expand description

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.