We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c1a4e75 commit 30c5659Copy full SHA for 30c5659
src-tauri/src/commands.rs
@@ -1,10 +1,10 @@
1
-use std::env::temp_dir;
2
use std::io::Cursor;
3
use std::path::Path;
4
5
use reqwest::Client;
6
use tauri::api::dialog::blocking::FileDialogBuilder;
7
use tokio::fs;
+use tokio::fs::create_dir;
8
use crate::aggregator::aggregate;
9
use crate::analyzer::analyze;
10
@@ -51,6 +51,7 @@ pub async fn process_data(
51
) -> Result<(), String> {
52
let temp_dir = tempfile::tempdir().map_err(|e| e.to_string())?;
53
let data_dir = temp_dir.path().join("data");
54
+ create_dir(&data_dir).await.map_err(|e| e.to_string())?;
55
dbg!(temp_dir.path());
56
let dependencies_dir = app_handle
57
.path_resolver()
0 commit comments