rfs_br 1.0.2

Rust File System
Documentation
  • Coverage
  • 20%
    2 out of 10 items documented1 out of 8 items with examples
  • Size
  • Source code size: 7.27 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 317.95 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 8s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Documentation
  • gabrielluizsf/rfs
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • gabrielluizsf

📁 RFS - Rust File System

RFS is a simple and extensible Rust library that abstracts basic file system operations like creating, reading, writing, and deleting files and directories.


✨ Features

  • Create and write to files
  • Read files as String
  • Create directories (including nested ones)
  • Delete files and directories
  • Trait-based interface: easy to test and extend

🔧 Usage

use 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(())
}