diff --git a/yazi-scheduler/src/scheduler.rs b/yazi-scheduler/src/scheduler.rs index 33eb2391..db83c69c 100644 --- a/yazi-scheduler/src/scheduler.rs +++ b/yazi-scheduler/src/scheduler.rs @@ -99,7 +99,10 @@ impl Scheduler { if !force { to = unique_path(to).await; } - file.paste(FileOpPaste { id, from, to, cut: true, follow: false, retry: 0 }).await.ok(); + file + .paste(FileOpPaste { id, from, to, meta: None, cut: true, follow: false, retry: 0 }) + .await + .ok(); } .boxed(), LOW, @@ -121,7 +124,10 @@ impl Scheduler { if !force { to = unique_path(to).await; } - file.paste(FileOpPaste { id, from, to, cut: false, follow, retry: 0 }).await.ok(); + file + .paste(FileOpPaste { id, from, to, meta: None, cut: false, follow, retry: 0 }) + .await + .ok(); } .boxed(), LOW, diff --git a/yazi-shared/src/fs/fns.rs b/yazi-shared/src/fs/fns.rs index b0df8ae8..97934573 100644 --- a/yazi-shared/src/fs/fns.rs +++ b/yazi-shared/src/fs/fns.rs @@ -1,7 +1,7 @@ use std::{collections::VecDeque, fs::Metadata, path::{Path, PathBuf}}; use anyhow::Result; -use filetime::{set_file_mtime, set_file_times, FileTime}; +use filetime::{set_file_mtime, FileTime}; use tokio::{fs, io, select, sync::{mpsc, oneshot}, time}; pub async fn accessible(path: &Path) -> bool {