Thanks. I was also surprised there's not much out there, and what there is seems to wants to see whole disks or partitions and not whatever FatFS creates. There is a Python wrapper for FatFS but it's incomplete, alpha status.
It seems there are two options; extract and wrap the FAT file system part from the Flash image with whatever it takes to make it understandable by something which exists, or write a DIY FAT filesystem walker.
I have coded SD Card readers in the past so I will probably favour the DIY route. Hopefully I can recall what I did back then and the re-learning curve will be short. Luckily FAT isn't complicated. At least that way I should be able to create something with the same API as 'littlelfs-python'.
I think that might become this weekend's adventure.
It seems there are two options; extract and wrap the FAT file system part from the Flash image with whatever it takes to make it understandable by something which exists, or write a DIY FAT filesystem walker.
I have coded SD Card readers in the past so I will probably favour the DIY route. Hopefully I can recall what I did back then and the re-learning curve will be short. Luckily FAT isn't complicated. At least that way I should be able to create something with the same API as 'littlelfs-python'.
I think that might become this weekend's adventure.
Statistics: Posted by hippy — Thu Jul 17, 2025 4:34 pm