After downloading a file to my ESP8266 I see the following error, I think all it needs is the 'import os' before executing the os.listdir('.') command:
`Ready to download this file,please wait!
..........
download ok
os.listdir('.')
Traceback (most recent call last):
File "", line 1, in
NameError: name 'os' is not defined
`