fs_err::tokio

Function write

source
pub async fn write(
    path: impl AsRef<Path>,
    contents: impl AsRef<[u8]>,
) -> Result<()>
Available on crate feature tokio only.
Expand description

Creates a future that will open a file for writing and write the entire contents of contents to it.

Wrapper for tokio::fs::write.