Skip to content

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

Closed
@igrr

Description

@igrr
Member

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

me-no-dev commented on Dec 4, 2015

@me-no-dev
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

miky2k commented on Dec 4, 2015

@miky2k

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

igrr commented on Dec 4, 2015

@igrr
MemberAuthor

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

miky2k commented on Dec 4, 2015

@miky2k

Under linux?

me-no-dev

me-no-dev commented on Dec 4, 2015

@me-no-dev
Collaborator

@igrr where can I read on the matter?

igrr

igrr commented on Dec 4, 2015

@igrr
MemberAuthor

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

me-no-dev

me-no-dev commented on Jan 12, 2016

@me-no-dev
Collaborator

recursive plugin have been done here: 68fd738

igrr

igrr commented on Jan 12, 2016

@igrr
MemberAuthor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @igrr@miky2k@me-no-dev

        Issue actions

          SPIFFS data directory subfolder not converted in prefixed files. · Issue #5 · esp8266/arduino-esp8266fs-plugin