• 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 4 years 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 4 years 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 4 years 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

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

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

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

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.