pub async fn write( path: impl AsRef<Path>, contents: impl AsRef<[u8]>, ) -> Result<()>
Write data to a file, creating it if it doesn’t exist, truncating it if it does.