Closed
Description
From @far5893 on December 4, 2015 9:16
SPIFFS does not support directories so dir is only a prefix of filename,
if i prepare SPIFFS filesystem in linux (data directory) i cannot prefix files with /somewhere/ (/ is not allowed) but i can create directories , spiffs flash tool does not convert directories name in file prefixes!
Copied from original issue: esp8266/Arduino#1139
Activity
me-no-dev commentedon Dec 4, 2015
ok, what do we need to do?
get the files in subfolders and put them with the folder name as prefix to the new name?
do the names start with "/", I think it does not matter but we need to standardize it somehow on the ESP side. I have run into issues doing SPIFFS.open("file.txt","w") and SPIFFS.open("/file.txt","w")
miky2k commentedon Dec 4, 2015
In a file system where there is not working-dir concept all name should be absolute (starting with /) for compatibility with filesystem where dir is a real object.
igrr commentedon Dec 4, 2015
Actually i checked and mkspiffs 1.2 supports nested directories. So I think this should just work if you create a 'somewhere' subdirectory in 'data' directory and put all files there.
miky2k commentedon Dec 4, 2015
Under linux?
me-no-dev commentedon Dec 4, 2015
@igrr where can I read on the matter?
igrr commentedon Dec 4, 2015
Recursive packing has been added here: igrr/mkspiffs@2ecc11f
It's part of mkspiffs-1.2 release.
me-no-dev commentedon Jan 12, 2016
recursive plugin have been done here: 68fd738
igrr commentedon Jan 12, 2016
In 0.2.0