oserror: [errno 21]

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
Post Reply
Aunullah Qaiser
Posts: 3
Joined: Tue Mar 21, 2017 4:42 am

oserror: [errno 21]

Post by Aunullah Qaiser » Thu Mar 23, 2017 4:24 pm

I flashed up my esp 01 properly and it was running properly. I ran os.mkdir() command to create a directory which was created successfully and os.listdir() also ran properly too.The problem arises whenever I use os.remove() command to remove a directory, the following error is displayed and I am unable to delete the file.

>>> os.remove('del')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OSError: [Errno 21] EISDIR


Post Reply