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
oserror: [errno 21]
Re: oserror: [errno 21]
https://docs.python.org/3/library/os.html#os.remove
Perhaps you want to use rmdir instead?
https://docs.python.org/3/library/os.html#os.rmdir
Perhaps you want to use rmdir instead?
https://docs.python.org/3/library/os.html#os.rmdir