fuser 0.7.0

Filesystem in Userspace (FUSE) for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use fuser::{Filesystem, MountOption};
use std::env;

struct NullFS;

impl Filesystem for NullFS {}

fn main() {
    env_logger::init();
    let mountpoint = env::args_os().nth(1).unwrap();
    fuser::mount2(NullFS, mountpoint, &[MountOption::AutoUnmount]).unwrap();
}