Makes directory module private and re-export its items

This commit is contained in:
Putta Khunchalee 2024-09-28 14:21:04 +07:00
parent 13ba851724
commit 9e324e9dd1
3 changed files with 11 additions and 6 deletions

View File

@ -18,6 +18,12 @@ for item in root {
}
```
## Breaking changes
### 0.1 to 0.2
My Rust skill has improved a lot since version 0.1 so I take this semver breaking change to make a lot of things better. That mean version 0.2 is not compatible with 0.1 in any ways.
## License
MIT

View File

@ -1,5 +1,7 @@
pub use self::directory::*;
pub use self::disk::*;
use self::cluster::ClustersReader;
use self::directory::{Directory, Item};
use self::entries::{ClusterAllocation, EntriesReader, EntryType, FileEntry};
use self::fat::Fat;
use self::file::File;
@ -9,10 +11,8 @@ use core::fmt::Debug;
use std::sync::Arc;
use thiserror::Error;
pub use self::disk::*;
pub mod cluster;
pub mod directory;
mod directory;
mod disk;
pub mod entries;
pub mod fat;

View File

@ -1,6 +1,5 @@
use exfat::directory::Item;
use exfat::timestamp::Timestamp;
use exfat::Root;
use exfat::{Item, Root};
use std::fs::File;
use std::io::Read;
use std::path::PathBuf;