fix: test

This commit is contained in:
Louis 2025-08-07 23:47:35 +07:00
parent 0b7477ea56
commit fc7d8a7a9c
No known key found for this signature in database
GPG Key ID: 44FA9F4D33C37DE2

View File

@ -47,7 +47,7 @@ pub fn ensure_thread_dir_exists<R: Runtime>(
ensure_data_dirs(app_handle.clone())?; ensure_data_dirs(app_handle.clone())?;
let thread_dir = get_thread_dir(app_handle, thread_id); let thread_dir = get_thread_dir(app_handle, thread_id);
if !thread_dir.exists() { if !thread_dir.exists() {
fs::create_dir(&thread_dir).map_err(|e| e.to_string())?; fs::create_dir_all(&thread_dir).map_err(|e| e.to_string())?;
} }
Ok(()) Ok(())
} }