minor work done

This commit is contained in:
Able 2021-11-26 03:57:42 -06:00
parent 71dc68f3a9
commit 29856f2378

View file

@ -10,7 +10,6 @@ use fuse::{
}; };
use libc::ENOENT; use libc::ENOENT;
use std::env; use std::env;
use std::path::Path;
use time::Timespec; use time::Timespec;
const TTL: Timespec = Timespec { sec: 1, nsec: 0 }; // 1 second const TTL: Timespec = Timespec { sec: 1, nsec: 0 }; // 1 second
@ -114,5 +113,11 @@ impl Filesystem for HelloFS {
fn main() { fn main() {
let mountpoint = env::args_os().nth(1).unwrap(); let mountpoint = env::args_os().nth(1).unwrap();
fuse::mount(HelloFS, &mountpoint, &[]); let handle = fuse::mount(HelloFS, &mountpoint, &[]);
match handle {
Ok(_) => {}
Err(error) => {
println!("{}", error)
}
}
} }