123456789101112131415161718192021 |
- pub(crate) mod files;
- use tauri::{
- plugin::{Builder, TauriPlugin},
- Manager, Runtime,
- };
- use self::files::*;
- /// Initializes the plugin.
- pub fn init<R: Runtime>() -> TauriPlugin<R> {
- Builder::new("st-files")
- .invoke_handler(tauri::generate_handler![
- get_all_directory,get_file_type_by_path,calculate_file_hash
- ])
- .setup(|app| {
- // app.manage(SqliteMap::default());
- Ok(())
- })
- .build()
- }
|