Skip to main content

write_file

Function write_file 

Source
pub fn write_file(
    directory: &str,
    file_name: &str,
    bytes: &[u8],
) -> Result<SavedFile, String>
Available on crate feature mcp and non-WebAssembly only.
Expand description

Write bytes to directory/file_name, creating the directory.