Why SPIFFS.h: No such file or directory?

Hello. I'm trying to figure out how the file system works on the ESP8266. I decided to start from the very beginning, because I could not figure it out with FSBrowser.
To begin with, I decided to simply get information about the entire file system. In theory, I should include two libraries: FS.h and SPIFFS.h. But I immediately get an error: SPIFFS.h: No such file or directory, although this file exists in the kernel along the path: packages\esp8266\hardware\esp8266\3.1.1\cores\esp8266\spiffs\ This does not depend on which the IDE version I'm using. Therefore, two questions: 1. Do I understand correctly that two libraries need to be connected to obtain information about the FS? 2. Why does not see SPIFFS.h?

On the esp8266 platform, SPIFFS has been dropped in favor of LittleFS.

However the filename is all lowercase spiffs.h

Unfortunately, anyway: Compilation error: spiffs.h: No such file or directory

Yes, I read that littlefs is better, but this is not critical for checking the operation of a couple of functions, is it?
By the way, I left only #include <FS.h> and my check was successful:

void setup() {
Serial.begin(74880);
if(LittleFS.begin()==true) { Serial.println("LittleFS initialised OK");
  }
if(SPIFFS.begin()==true) { Serial.println("SPIFFS initialised OK");
  }
}

Both conditions showed OK. If I understand correctly, both times the ESP8266 was formatted, first LittleFS, then SPIFFS. And if so, then it is not necessary to include the SPIFFS.h library.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.