Skip to content

SPIFFS filename length limit? #2858

Closed
Closed
@JamesGKent

Description

@JamesGKent

Basic Infos

Hardware

Hardware: Wemos D1 R2
Core Version: git master

Description

I'm using the latest git version of this library through the arduino 1.6.9 IDE and I've noticed that one of the files i loaded into the SPIFFS filesystem was not being served when it was requested. when i tried to debug this i found that SPIFFS.exists(filename) was returning false for this particular file even though it was definitely there. however another file with a similar name (3 chars shorter) was being returned just fine, so i renamed the file to shorten the filename and re uploaded it, at which point SPIFFS.exists succeeds.
the filename in question was this:
iframeResizer.contentWindow.min.js
and when shortened:
iframeResizer.content.min.js

however another file:
iframeResizer.contentWindow.map
was being returned just fine.

does the SPIFFS filesystem have some inherent limit on the length of filenames?
if so does this include the whole directory (if it was in a subdirectory) or just the filename?
and if so, what is the limit and why?

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

    Issue actions