Little File System (LittleFS) API Reference#

The Little File System (LittleFS) provides a set of public Application Programming Interfaces (APIs) for managing files, directories, and storage operations in embedded systems. These APIs allow developers to integrate file-based data management into applications running on microcontrollers with flash memory.

This section introduces the available public APIs and explains where to find detailed documentation.

Overview#

LittleFS APIs provide fundamental file-system operations while maintaining data integrity and efficient flash usage.

They are designed for embedded environments that require deterministic behavior, minimal memory usage, and resilience to power loss.

Key API capabilities include:

  • Mounting and formatting file systems

  • Opening, reading, writing, and closing files

  • Creating and deleting directories

  • Traversing directories and listing files

  • Synchronizing data and managing metadata

  • Handling wear leveling and block management automatically

Public APIs#

For detailed information about available APIs, see the official LittleFS API documentation.