Note: it is recommended to wrap the underlying file struct in a buffering/caching object like BufStream from
fscommon crate. For example:
let buf_stream = BufStream::new(img_file);
let fs = fatfs::FileSystem::new(buf_stream, fatfs::FsOptions::new())?;
fatfsrecommends usingfscommon::BufStreamdfinity/cdk-rs#245 and dfinity/cdk-rs#247 appear to be doing something similar that won’t work out of the box here.