Closed VitorNilson closed 1 year ago
Hi @VitorNilson . It looks like Pymakr is trying to clear your rootPath, which I assume is ('/').
Could you try this in paste mode in your REPL and report the results to me?
def rmdir(directory):
os.chdir(directory)
for f in os.listdir():
try:
os.remove(f)
except OSError:
pass
for f in os.listdir():
rmdir(f)
os.chdir('..')
try:
os.rmdir(directory)
except OSError:
pass
# Your root dir. Please change if this is different.
rmdir('/')
I am trying to upload a sample project to my ESP8266 board and Pymakr can not upload the project.
This is the error:
As you can see bellow, I can access the board and run python codes on the terminal:
Steps to reproduce the behavior:
Expected behavior Should upload code to the board.
Desktop (please complete the following information):
Additional context This is the source code that I am trying to upload to the device: