goliatone / node-esp

An ESP8266 command line interface.
5 stars 1 forks source link

file push: HTML/CSS/JS preserve directory structure on name #1

Open goliatone opened 8 years ago

goliatone commented 8 years ago

For HTML/CSS/JS files, we might want to mimic filesystem so that if we upload folder, we should have option to keep directory structure.

So, if directory structure:

- src
 | init.lua
 | app.lua
 | - public
     | - index.html
     | - style.css

Then, inside app, we can do file.open('public/index.html').