From 499c43e8d776844e902583350dafa649727157e4 Mon Sep 17 00:00:00 2001 From: xintaofei Date: Sun, 22 Mar 2026 13:38:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dwindows=E4=B8=8B=E7=9A=84?= =?UTF-8?q?=E6=9E=84=E5=BB=BA=E8=AD=A6=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src-tauri/src/commands/folders.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src-tauri/src/commands/folders.rs b/src-tauri/src/commands/folders.rs index f9803fe..76240c6 100644 --- a/src-tauri/src/commands/folders.rs +++ b/src-tauri/src/commands/folders.rs @@ -1,5 +1,5 @@ use std::collections::{hash_map::DefaultHasher, HashMap, HashSet}; -use std::fs::{File, OpenOptions}; +use std::fs::OpenOptions; use std::hash::{Hash, Hasher}; use std::io::Write; use std::path::{Component, Path, PathBuf}; @@ -2692,7 +2692,7 @@ fn replace_file(temp_path: &Path, target_path: &Path) -> Result<(), AppCommandEr #[cfg(unix)] fn sync_directory(path: &Path) -> Result<(), AppCommandError> { - let dir = File::open(path).map_err(AppCommandError::io)?; + let dir = std::fs::File::open(path).map_err(AppCommandError::io)?; dir.sync_all().map_err(AppCommandError::io) }