chore: cache directory when ivy_init is called

This is now implemented in rust
This commit is contained in:
Ade Attwood 2022-08-25 19:40:49 +01:00
parent e7b7dc1e4c
commit 9fdb633f3e

View file

@ -31,7 +31,10 @@ fn get_files(directory: &String) -> Vec<String> {
}
#[no_mangle]
pub extern "C" fn ivy_init() {}
pub extern "C" fn ivy_init(c_base_dir: *const c_char) {
let directory = to_string(c_base_dir);
get_files(&directory);
}
#[no_mangle]
pub extern "C" fn ivy_match(c_pattern: *const c_char, c_text: *const c_char) -> c_int {