[solved] ESP Editor file system - list of files

Hi, since there are several files excep the cfg.json and presets.cfg like mappings, images, etc…
is there any way to optain a simple list of files like in the ESP Editor for backup reasons?

I think http://my-WLED-IP/edit is your best shot.
From what I can tell, if you’ve saved something “new” in the FS, it appears there.
If it’s not there, it hasn’t been saved (???)

I recently hit an example where I’d created a custom palette, then reloaded the chip.
I’d saved my presets and .cfg via the GUI backups, but my palette was gone.

I recreated the palette and happened to look under edit and there it was.
You can cut and paste to save from there, not pretty, but better than nothing.

No, i want to parse that list to do automatic backups. My imagination is a simple list like a ls command from where i can parse all filenames.

I don’t think there’s anyway to interrogate the FS like that (perhaps a developer will chime in).

What i know and tested is this assuming your wled ip is 10.0.6.70

Upload file to wled ( will reboot if cfg.json)
curl -F “data=@cfg.json” 10.0.6.70/upload

View remote file in wled
curl http://10.0.6.70/cfg.json

Download remote file from wled
curl -O http://10.0.6.70/cfg.json

I am not sure you could list the remote unit content but could be , i tried a bit a while back to download with * but did not work , might be you will have a better luck

Thats exactly the challenge. Had also no luck at all, but maybe some of the developers will give the right hint or include it in some json answers?

Technically there is only one active developer working on wled at the moment who is blaz , and I also see adding file system content to JSON response to be very useful for a lot of things I have in mind but my guess is it is very much complicated to implement , the closest thing i seen is with serial using the SD card usermod so might be something from that code could be adopted , might be you would get a better response on github if you open a feature request for this and i will try to second you

Good idea. Just did it. Let’s hope the best.

Got the answer from blaz and it is:

http://wled.local/edit?list=/

only if somebody is also looking for that.

Thanks!
Tom

1 Like

Very nice

I think from that word we could find the source , SPIFFSEditor.cpp , might be could be useful for other things