oserror: [errno 21]
Posted: 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
>>> os.remove('del')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OSError: [Errno 21] EISDIR