| Crates.io | rfs_br |
| lib.rs | rfs_br |
| version | 1.0.2 |
| created_at | 2025-05-15 13:19:47.595742+00 |
| updated_at | 2025-05-15 13:30:26.300018+00 |
| description | Rust File System |
| homepage | https://github.com/gabrielluizsf/rfs |
| repository | https://github.com/gabrielluizsf/rfs |
| max_upload_size | |
| id | 1675001 |
| size | 7,278 |
RFS is a simple and extensible Rust library that abstracts basic file system operations like creating, reading, writing, and deleting files and directories.
Stringuse rfs_br::file_system::{FileSystem, LocalFileSystem};
fn main() -> std::io::Result<()> {
let fs = LocalFileSystem;
fs.create_file("example.txt", b"Hello, world!")?;
fs.write_file("example.txt", b"\nAppended content")?;
let content = fs.read_file("example.txt")?;
println!("{}", content);
fs.delete_file("example.txt")?;
Ok(())
}