forked from M-Labs/rust-fatfs
Update README and add TODO file.
This commit is contained in:
parent
c4e6d59492
commit
ce76c486ec
23
README.md
23
README.md
@ -6,20 +6,27 @@ Rust FAT
|
|||||||
[![crates.io](http://meritbadge.herokuapp.com/fatfs)](https://crates.io/crates/fatfs)
|
[![crates.io](http://meritbadge.herokuapp.com/fatfs)](https://crates.io/crates/fatfs)
|
||||||
[![Documentation](https://docs.rs/fatfs/badge.svg)](https://docs.rs/fatfs)
|
[![Documentation](https://docs.rs/fatfs/badge.svg)](https://docs.rs/fatfs)
|
||||||
|
|
||||||
Introduction
|
|
||||||
------------
|
|
||||||
|
|
||||||
FAT filesystem library implemented in Rust.
|
FAT filesystem library implemented in Rust.
|
||||||
|
|
||||||
Features:
|
Features:
|
||||||
* read file or directory,
|
* read/write/create/remove file,
|
||||||
* write file or directory,
|
* enumerate directory children,
|
||||||
* create new file or directory,
|
* create/remove directory,
|
||||||
|
* read/write file timestamps (updated automatically if chrono is available),
|
||||||
* FAT12, FAT16, FAT32 compatibility,
|
* FAT12, FAT16, FAT32 compatibility,
|
||||||
* LFN (Long File Names) extension supported.
|
* LFN (Long File Names) extension supported.
|
||||||
|
|
||||||
Planned features (Nice to Have):
|
Example
|
||||||
* no_std environment support.
|
=======
|
||||||
|
|
||||||
|
let file = File::open("fat.img").unwrap();
|
||||||
|
let mut buf_rdr = BufStream::new(file);
|
||||||
|
let fs = FileSystem::new(&mut buf_rdr, true).unwrap();
|
||||||
|
let mut root_dir = fs.root_dir();
|
||||||
|
let mut file = root_dir.create_file("hello.txt").unwrap();
|
||||||
|
file.write_all(b"Hello World!").unwrap();
|
||||||
|
|
||||||
|
See more examples in `examples` subdirectory.
|
||||||
|
|
||||||
License
|
License
|
||||||
-------
|
-------
|
||||||
|
Loading…
Reference in New Issue
Block a user