exfat-slim 0.4.1

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

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

#[tokio::main(flavor = "current_thread")]
async fn main() -> Result<(), ExFatError<InMemoryBlockDevice>> {
    env_logger::init();
    color_backtrace::install();

    let io = InMemoryBlockDevice::new();
    let mut fs = FileSystem::new(io);

    let path = "/temp2/foo/shoe";
    fs.create_directory(path).await?;

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

    Ok(())
}