pub async fn write( path: impl AsRef<Path>, contents: impl AsRef<[u8]>, ) -> Result<()>
Writes contents as the whole file at path, creating it or cutting it down first.
contents
path