[feat] add check path logic to prepare
todo: more complete logic
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user