pub fn save_file<P: Display>(path: P, contents: &[u8]) -> String
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