Skip to content

Commit 6688cf2

Browse files
refac(fs): move file system related stuff to seperate rust modules
1 parent 57db13d commit 6688cf2

4 files changed

Lines changed: 6 additions & 7 deletions

File tree

apps/app/src-tauri/src/lib.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
mod tauri_commands;
1+
mod tasks;
22

33
#[cfg(all(test, not(target_os = "android")))]
44
mod desktop_test;
@@ -15,15 +15,15 @@ pub fn run() {
1515
.plugin(tauri_plugin_android_fs::init())
1616
.plugin(tauri_plugin_safe_area_insets_css::init())
1717
.invoke_handler(tauri::generate_handler![
18-
tauri_commands::file_system_stuff::build_file_tree,
18+
tasks::file_system_stuff::build_file_tree,
1919
#[cfg(target_os = "android")]
20-
tauri_commands::file_system_stuff::android::rename_file_android,
20+
tasks::file_system_stuff::android::rename_file_android,
2121
#[cfg(target_os = "android")]
22-
tauri_commands::file_system_stuff::android::move_file_android,
22+
tasks::file_system_stuff::android::move_file_android,
2323
#[cfg(target_os = "android")]
24-
tauri_commands::file_system_stuff::android::rename_directory_android,
24+
tasks::file_system_stuff::android::rename_directory_android,
2525
#[cfg(target_os = "android")]
26-
tauri_commands::file_system_stuff::android::move_directory_android
26+
tasks::file_system_stuff::android::move_directory_android
2727
])
2828
.setup(|app| {
2929
if cfg!(debug_assertions) {

apps/app/src-tauri/src/tauri_commands/file_system_stuff/android.rs renamed to apps/app/src-tauri/src/tasks/file_system_stuff/android.rs

File renamed without changes.

apps/app/src-tauri/src/tauri_commands/file_system_stuff/mod.rs renamed to apps/app/src-tauri/src/tasks/file_system_stuff/mod.rs

File renamed without changes.

apps/app/src-tauri/src/tauri_commands/mod.rs

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)