Function compio_fs::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.