-->
Page 1 of 1

Create or copy folder

PostPosted: Tue Aug 23, 2016 7:16 pm
by ViniciusKruz
Hello everyone,
I am installing an http server and all the files I 've already copied to the ESP8266 through ESPlorer now need to copy the folder http but found a way to make someone help me? Sorry for my bad English !!!

Re: Create or copy folder

PostPosted: Wed Aug 24, 2016 12:19 am
by marcelstoer
Not sure I understand...However, there is no notion of "folders" on this file system, it's flat. What you can do though is to emulate folders by giving files a prefix. Hence, you need to rename the file.

Code: Select allfile.rename("index.html","http/index.html")

Re: Create or copy folder

PostPosted: Wed Aug 24, 2016 6:51 am
by ViniciusKruz
Ok, I got it!! I am testing the Http Server: https://github.com/marcoskirsch/nodemcu-httpserver/tree/master and it has the folder http , it was probably done the way you said. I will better understand how they do the installation for Linux but following your idea. Thank you very much!