buf-fs
A buffer based, in-memory, no_std filesystem.
This crate mimics a file system, operating entirely within memory. By establishing a Fat (File Allocation Table) partition within a byte buffer, it exposes an API resembling that of a traditional filesystem to its users.
Example
use FileSystem;
let size = 4 * 1024 * 1024;
let mut fs = new.unwrap;
let data = b"foo";
fs.mkdir.unwrap;
fs.open
.unwrap
.update
.save
.unwrap;
fs.open
.unwrap
.update
.save
.unwrap;
assert_eq!;
let contents = fs.ls.unwrap;
assert_eq!;
// FAT-16 is always uppercase.
// It's a TODO to support ext4
assert_eq!;
assert_eq!;
assert_eq!;