Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

fix: change data location that has accident symlink failed

Vanalitee221415085e4
diff --git a/src-tauri/src/core/app/helpers.rs b/src-tauri/src/core/app/helpers.rs
index 6715e73cb..66b9ac693 100644
--- a/src-tauri/src/core/app/helpers.rs
+++ b/src-tauri/src/core/app/helpers.rs
@@ -24,8 +24,10 @@ pub fn copy_dir_recursive(
}
}
copy_dir_recursive(&src_path, &dst_path, exclude_dirs)?;
- } else {
+ } else if file_type.is_file() || file_type.is_symlink() {
fs::copy(&src_path, &dst_path)?;
+ } else {
+ log::debug!("Skipping non-regular file: {src_path:?}");
}
}