scientifichackers / ampy

MicroPython Tool - Utility to interact with a MicroPython board over a serial connection.
MIT License
718 stars 156 forks source link

`rmdir --missing-okay` not working on ESP32 w. MicroPython #92

Open dybber opened 4 years ago

dybber commented 4 years ago

When issuing ampy rmdir directoryname/ --missing-okay, on a directory that doesn't exist, ampy still errors.

The problem seems to be this line, which checks for a very specific error string: https://github.com/scientifichackers/ampy/blob/master/ampy/files.py#L292

However, on the ESP32 version of MicroPython, that error string is just:

OSError: -2
0x5e commented 2 years ago

Same on me. --missing-okay not working.