mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-08-24 20:52:11 +00:00
Fixed Qdrant removal for Linux devices
This commit is contained in:
parent
308f78803f
commit
0e38bc657f
@ -398,10 +398,16 @@ fn remove_obsolete_qdrant_sidecar_files<R: tauri::Runtime>(app_handle: &tauri::A
|
|||||||
paths.push(resource_dir.join("resources").join("databases").join("qdrant"));
|
paths.push(resource_dir.join("resources").join("databases").join("qdrant"));
|
||||||
}
|
}
|
||||||
|
|
||||||
if let Ok(current_exe) = std::env::current_exe() && let Some(exe_dir) = current_exe.parent() {
|
cfg_if::cfg_if! {
|
||||||
paths.push(exe_dir.join("target").join("databases").join("qdrant"));
|
if #[cfg(any(target_os = "windows", target_os = "macos"))]{
|
||||||
paths.push(exe_dir.join("qdrant.exe"));
|
if let Ok(current_exe) = std::env::current_exe() && let Some(exe_dir) = current_exe.parent() {
|
||||||
paths.push(exe_dir.join("qdrant"));
|
if (current_exe.to_string_lossy().contains("MindWork AI Studio")) {
|
||||||
|
paths.push(exe_dir.join("target").join("databases").join("qdrant"));
|
||||||
|
paths.push(exe_dir.join("qdrant.exe"));
|
||||||
|
paths.push(exe_dir.join("qdrant"));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for path in paths {
|
for path in paths {
|
||||||
@ -411,6 +417,7 @@ fn remove_obsolete_qdrant_sidecar_files<R: tauri::Runtime>(app_handle: &tauri::A
|
|||||||
|
|
||||||
fn remove_obsolete_qdrant_path(path: &Path) {
|
fn remove_obsolete_qdrant_path(path: &Path) {
|
||||||
if !path.exists() {
|
if !path.exists() {
|
||||||
|
info!(Source = "Qdrant Edge"; "Obsolete file or directory '{}' was not found.", path.display());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user