I wrote a small script on a m5stack which has micro:python flashed and is connected to my win10 64 box via putty.
The way I created it was using write.file like:
file = open("test.py","w")
file.write("Test\n")
file.write("\n")
file.write("Test2\n")
file.close()
This went well without producing any error.
When I want to read the file I simply don't find it.
I used
>>> import os,sys
>>> sys.path
['', '/flash/lib']
>>> os.listdir('/')
['flash']
>>> os.listdir('/flash')
['boot.py']
>>>
Now the question is: Where is my test.py script?

Don't forget, I'm a python + micro python + ESP noob

Cheers!