Crate readwriteseekfs[−][src]
Expose Read
+Write
+Seek
(or just Read
+Seek
) as a FUSE-backed regular file
Example:
extern crate fuse; extern crate readwriteseekfs; use std::fs::File; use std::io::{Cursor, Result, Write}; fn main() -> Result<()> { let content = vec![0; 65536]; let mut c = Cursor::new(content); c.write(b"Hello, world\n")?; let fs = readwriteseekfs::ReadWriteSeekFs::new(c, 1024)?; let _ = File::create(&"hello.txt"); fuse::mount(fs, &"hello.txt", &[]) }
Structs
ReadSeekFs |
A read-only Filesystem for your Read+Seek [pseudo]file |
ReadWriteSeekFs |
A read-write Filesystem for your Read+Write+Seek [pseudo]file |