Skip to content

#include <LittleFS> #7384

Closed
Closed
@alka79

Description

@alka79

Hello,

The main page says for File System here https://github.com/esp8266/Arduino/blob/master/doc/filesystem.rst

Note: to use any of file system functions in the sketch, add the following include to the sketch:
#include "FS.h"

The note seems to indicate that FS.h will cover both SPIFFS or LitttleFS.

I followed the guide to convert from SPIFFS to LittleFS and got compiler errors :
LittleFS was not declared in this scope.

I finally found that #include <LittleFS.h> instead of <FS.h> solves the issue.

As a side note, it is confusing that Arduino IDE recognises SPIFFS as a keyword and not LittleFS.
keywords.txt is missing for this lib.

Hope it helps,
Al

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