exfat-slim 0.4.1

An exFAT file system library written in safe Rust for embedded environments
Documentation
mod common;

use crate::common::blocking::InMemoryBlockDevice;
use exfat_slim::blocking::{error::ExFatError, file_system::FileSystem};
use log::info;

fn main() -> Result<(), ExFatError<InMemoryBlockDevice>> {
    env_logger::init();
    color_backtrace::install();

    let io = InMemoryBlockDevice::new();
    let mut fs: FileSystem<InMemoryBlockDevice, _> = FileSystem::new(io);
    let path = "/temp2/hello2/shoe/test.txt";

    let exists = fs.exists(path)?;
    info!("file exists: {exists}");

    info!("deleting file");
    fs.remove_file(path)?;

    let exists = fs.exists(path)?;
    info!("file exists: {exists}");

    Ok(())
}