fun-folder-common 0.1.2

Common package used by `fun-folder` project ecosystem
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
extern crate notify;
use notify::Op;

pub trait FolderEventHandler{
    fn handle_op(&self, op: Op){
        if op == Op::CREATE {println!("CREATE");}
        else if op == Op::RENAME {println!("RENAME");}
        else if op == Op::RESCAN {println!("RESCAN");}
        else if op == Op::REMOVE {println!("REMOVE");}
        else if op == Op::WRITE {println!("WRITE");}
        else if op == Op::CHMOD {println!("CHMOD");} // Unix only
        else if op == Op::CLOSE_WRITE {println!("CLOSE_WRITE");} // Unix only
    }
}