minor work done

master
Able 2021-11-26 03:57:42 -06:00
parent c8c090dce3
commit 82977239bd
No known key found for this signature in database
GPG Key ID: 2BB8F62388A6A225
1 changed files with 7 additions and 2 deletions

View File

@ -10,7 +10,6 @@ use fuse::{
};
use libc::ENOENT;
use std::env;
use std::path::Path;
use time::Timespec;
const TTL: Timespec = Timespec { sec: 1, nsec: 0 }; // 1 second
@ -114,5 +113,11 @@ impl Filesystem for HelloFS {
fn main() {
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)
}
}
}