Function rust_utils::utils::save_file[][src]

pub fn save_file<C: Into<String>, P: Into<String>>(
    path: P,
    contents: C
) -> String

abstraction around fs::write() that includes error handling Returns the following codes: OK: Save operation successful ERR: There was a problem writing the file