chore: cleanup src-tauri

This commit is contained in:
2025-07-03 14:32:54 +02:00
parent 2896a68757
commit 1202648fec
3 changed files with 215 additions and 219 deletions

View File

@@ -1,13 +1,5 @@
use std::path::Path;
/// Checks the presence of required files in a folder and returns the percentage found.
///
/// # Arguments
/// * `folder_path` - The path to the folder to check.
/// * `required_files` - A slice of file names that should be present in the folder.
///
/// # Returns
/// * `f32` - The percentage (0.0 to 100.0) of required files found in the folder.
pub fn check_folder_completeness<P: AsRef<Path>>(folder_path: P, required_files: &[&str]) -> f32 {
let mut found = 0;
for file in required_files {