• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

LittleFS on Node MCU ESP8266

Q&A Forum › Category: ESP8266 › LittleFS on Node MCU ESP8266
0 Vote Up Vote Down
Paul French asked 1 month ago

I am working my way through a number of tutorials and switching between PlatformIO and Aduino IDE. 
Do I need to clear  the ESP8266 file system before starting each new project?  If so how is this done?
Is there a simple way to read what is currently in the LittleFS system?

Question Tags: LittleFS
2 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 1 month ago

Hi.

You don’t need to clear the file system before starting each project. If you upload files with the same name, they will be overwritten.

To list all files in SPIFFS or LittleFS, you can run the code shown here: https://www.esp8266.com/viewtopic.php?p=87718#p87718
Replace SPIFFS with LittleFS if you’re using LittleFS.

This tutorial explains very well how to list and delete files: https://techtutorialsx.com/2019/02/24/esp32-arduino-removing-a-file-from-the-spiffs-file-system/

If you’re using the ESP8266, initialize SPIFFS like this:

SPIFFS.begin()

Or little FS like this:

LittleFS.begin()

I hope this helps.
Regards,
Sara

0 Vote Up Vote Down
Paul French answered 1 month ago

Thank you for this explanation.

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Released] Build Web Servers with ESP32 and ESP8266 (version 1.0) October 27, 2020
  • [eBook Updated] Download Build ESP32-CAM Projects using Arduino IDE (version 1.1) August 31, 2020

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2021 · RandomNerdTutorials.com · All Rights Reserved