pub fn read<P: AsRef<Path>>( path: P, data_dir: bool, ) -> Result<Vec<u8>, ApiError>
Read the entire contents of a file into a bytes vector.
Works similarly to [std::fs::read].
std::fs::read