Function virtual_fs::ops::write
source ยท pub async fn write<F>(
fs: &F,
path: impl AsRef<Path> + Send,
data: impl AsRef<[u8]> + Send,
) -> Result<(), FsError>where
F: FileSystem + ?Sized,
Expand description
Asynchronously write some bytes to a file.
This is analogous to std::fs::write()
.