wendlers / mpfshell

A simple shell based file explorer for ESP8266 Micropython based devices ⛺
MIT License
396 stars 84 forks source link

Iterator ilistdir does not exist on WiPy3 (latest official PyCOM version of mp: 1.17) #113

Open faon opened 7 months ago

faon commented 7 months ago

Hello, I tried a few ways to deal with ESP32 MCU, and I am very pleased by mpfshell. But when handling my WiPy3, I found that 'ls' command is not working : it is due to the ilistdir call in the imported library python3.8/dist-packages/mp/mpfexp.py

def ls(self, add_files=True, add_dirs=True, add_details=False): files = [] try: res = self.eval("list(uos.ilistdir('%s'))" % self.dir) except Exception as e: if _was_file_not_existing(e):

Up to now, I use mpremote when working with WiPy3, but it should be nice to use mpfshell in everycase !

Best regrads, thanks for your work, Alain