[feat] add check path logic to prepare

todo: more complete logic
This commit is contained in:
Purp1e
2025-03-18 02:16:15 +08:00
parent db3cf9aef2
commit 12e908f107
3 changed files with 28 additions and 17 deletions

View File

@@ -52,6 +52,6 @@ pub fn set_auto_login_user(user: &str) -> String {
}
#[tauri::command]
pub fn check_file_exists(file: &str) -> bool {
std::path::Path::new(&file).exists()
pub fn check_path(path: &str) -> bool {
std::path::Path::new(&path).exists()
}