igrr / mkspiffs

Tool to build and unpack SPIFFS images
MIT License
186 stars 91 forks source link

SPIFFS created files with leading / -- can this be avoided with additional parameter? #69

Open bsidhipong opened 4 years ago

bsidhipong commented 4 years ago

Hi, I'm using SPIFFS with Simba framework, under PlatformIO, and it calls mkspiffs to make the SPIFFS image for me just fine. But I noticed that all the files it creates begin with leading '/' which is a little odd under Simba framework as Simba mounts SPIFFS under /fs.

We end up having to refer to SPIFFS files in this manner:

$ filesystems/fs/read /fs//config.ini [network] ssid=ATOMIC_IOT psk=*****

Notice the double-slash that is needed to make this work under Simba. Perhaps if we could add a switch to mkspiffs that avoids the pre-pending of the leading slash that would be awesome.