fs pro

A library to work with files easily

crates.io Crates.io

the is a beta rust version of fs-pro

see the full docs here

Features

Usage

```rust use fs_pro::{Dir, File, error::Result};

fn main() -> Result<()> { let file = File::new("myfile.txt"); // create the file file.create(); // write to file file.write("hello there"); // read file file.readtostring(); // => "hello there" // and much more... let dir = Dir::new("mydir"); // create the dir dir.create(); // create a file in it dir.createfile("myfile.txt").unwrap().write("hello world"); // create a dir in it dir.createdir("mydir"); // and much more... } ```

Licence

Copyright (c) 2020 AliBasicCoder