Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 806 Bytes

README.md

File metadata and controls

24 lines (17 loc) · 806 Bytes

futures-fs

Travis Build Status crates.io docs.rs

Access File System operations off-thread, using Futures and Streams.

Usage

let fs = FsPool::default();

// our source file
let read = fs.read("/home/sean/foo.txt", Default::default());

// default writes options to create a new file
let write = fs.write("/home/sean/out.txt", Default::default());

// block this thread!
// the reading and writing however will happen off-thread
read.forward(write).wait()
    .expect("IO error piping foo.txt to out.txt");