Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SPIFFS data directory subfolder not converted in prefixed files. #5

Closed
igrr opened this issue Dec 4, 2015 · 8 comments
Closed

SPIFFS data directory subfolder not converted in prefixed files. #5

igrr opened this issue Dec 4, 2015 · 8 comments

Comments

@igrr
Copy link
Member

igrr commented Dec 4, 2015

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

@me-no-dev
Copy link
Collaborator

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
Copy link

miky2k commented 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
Copy link
Member Author

igrr commented 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
Copy link

miky2k commented Dec 4, 2015

Under linux?

@me-no-dev
Copy link
Collaborator

@igrr where can I read on the matter?

@igrr
Copy link
Member Author

igrr commented Dec 4, 2015

Recursive packing has been added here: igrr/mkspiffs@2ecc11f
It's part of mkspiffs-1.2 release.

@me-no-dev
Copy link
Collaborator

recursive plugin have been done here: 68fd738

@igrr
Copy link
Member Author

igrr commented Jan 12, 2016

In 0.2.0

@igrr igrr closed this as completed Jan 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants