lamfat 0.4.2

no_std read/write FAT12/16/32 filesystem library (republish of fatfs)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::{env, fs, io};

use lamfat::{format_volume, FormatVolumeOptions, StdIoWrapper};

fn main() -> io::Result<()> {
    let filename = env::args().nth(1).expect("image path expected");
    let file = fs::OpenOptions::new()
        .read(true)
        .write(true)
        .open(filename)?;
    format_volume(&mut StdIoWrapper::from(file), FormatVolumeOptions::new())?;
    Ok(())
}