Crate littlefs

source ·
Expand description

Rust interface to Little Filesystem suitable for microcontrollers.

This crate provides an interface to LittleFS a small filesystem written in C. Its sibling crate known as littlefs-sys builds and provides the bindings for the underlying C software.

A full description of the underlying filesystem technology can be found at: https://os.mbed.com/blog/entry/littlefs-high-integrity-embedded-fs/ https://github.com/ARMmbed/littlefs

Structs

Definition of a directory handle which is used to interact with a directory in the filesystem.
Definition of a file handle. File handles are used to interact with a file in the filesystem.
Wrapper around an array of u8 representing a filename in ASCII encoding.
Definition for filesystem info which is read through directory read calls or file stats.
An instance of the Little filesystem. This struct defines the method of interacting with the filesystem and contains all of the data required for the C software.

Enums

Definition for the type of directory entry which can be a file or directory.
Definition of errors that might be returned by filesystem functionality.
Definition of starting location for seeking within a file.

Traits

Definition of storage interface required by the filesystem.