compio_fs

Function write

Source
pub async fn write<P: AsRef<Path>, B: IoBuf>(
    path: P,
    buf: B,
) -> BufResult<(), B>
Expand description

Write a slice as the entire contents of a file.

This function will create a file if it does not exist, and will entirely replace its contents if it does.