pub fn save_to<T: AsRef<[u8]>>(data: T, location: &Location) -> Result<()>
Save some data to the given location.
If this returns Err it’s not guaranteed that we made no edits to the filesystem or localstorage.
Err