Closed hoihu closed 6 years ago
testboard: odroid go with ESP32 (loboris fork)
use case: copying a new file to the micropython board (not existent on /flash)
Reproduce e.g. by pushing a testfile (l.py). Fails with:
martin@Martins-iMac.local:~$ python3 -m there push l.py /flash/l.py -p /dev/cu.SLAB_USBtoUART -vvvvvvvv connected to /dev/cu.SLAB_USBtoUART 115200 I: import os; print(os.stat('/flash/l.py')) E: Traceback (most recent call last): E: File "<stdin>", line 1, in <module> E: OSError: [Errno 2] ENOENT
creating a dummy file on the REPL using fh = open('l.py','w'); fw.write('test'); fh.close() solves the problem.
fh = open('l.py','w'); fw.write('test'); fh.close()
ok strange enough I can't reproduce it now anymore and on a pyboard it works without issues
testboard: odroid go with ESP32 (loboris fork)
use case: copying a new file to the micropython board (not existent on /flash)
Reproduce e.g. by pushing a testfile (l.py). Fails with:
creating a dummy file on the REPL using
fh = open('l.py','w'); fw.write('test'); fh.close()
solves the problem.