1f4d7b3b7e
I was toying with making this look more like the mtree API in lfs.c (so no lookupleaf/namelookupleaf, only lookup/namelookup), but dropped the idea: - It would be tedious - The Mtree class's lookupleaf/namelookupleaf are also helpful for returning inner btree nodes when printing debug info - Not embedding mids in the Mdir class would complicate things It's ok for these classes to not match littlefs's internal API _exactly_. The goal is easy access for debug info, not to port the filesystem to Python. At least dropped Mtree.lookupnext, because that function really makes no sense.