chore: cache directory when ivy_init is called
This is now implemented in rust
This commit is contained in:
parent
e7b7dc1e4c
commit
9fdb633f3e
1 changed files with 4 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue