pub fn save_file<P: Display>(path: P, contents: &[u8]) -> String
👎 Deprecated since 0.6.0:

fs::write() does the exact same thing as this. Will be removed in 0.7.0

Expand description

Abstraction around fs::write() that includes error handling

Returns the following codes:

OK: Save operation successful

ERR: There was a problem writing the file