Is there a command to check if a file exist in LUA ? Something like: file.exist(filename)?
Hans
Explore... Chat... Share...
> =file.open("init.txt","r")
lua: stdin:1: cannot open file
> file.open("init.txt","r")
lua: stdin:1: cannot open file
>
zeroday wrote:file.open("init.lua","r") or file.open("init.lua")
if init.lua not exist, a error shows.
in next release this api will return a nil if the file not exists.
if file.list()[filename] then ....
I've successfully used Serial.prinft() for my debu[…]
Hi, I request you to test the ESP8266-12F board se[…]
Are the ESPs alright? I mean can you upload codes […]
The AT 2 binary for esp8266 build by Espressif use[…]
Thank you, that answers my major question. Rathe[…]
Here is a good design of a NodeMcu power supply. […]
Did you actually manage to fix this problem? I kno[…]
This topic was posted by a bot; original (6 year […]
I think it's because you're a bot and have no idea[…]
Hello, I'm new to websocket. I'm trying to send vi[…]
Follow US on Twitter and get ESP8266 news and updates first.