Function virtual_fs::ops::read
source · pub async fn read<F>(
fs: &F,
path: impl AsRef<Path> + Send,
) -> Result<Vec<u8>, FsError>where
F: FileSystem + ?Sized,
Expand description
Asynchronously read a file’s contents into memory.
This is analogous to std::fs::read()
.