add: job logic

This commit is contained in:
Kingtous committed 2022-05-16 14:45:17 +08:00
1 parent 2caa2db463
commit 11e0d2cbf1
5 files changed
+89 -6

No files matched your search

+5 -1
View File
@@ -161,9 +161,13 @@ impl ConnectionManager {
mut files,
} => {
let od = can_enable_overwrite_detection(get_version_number(VERSION));
// cm has no show_hidden context
write_jobs.push(fs::TransferJob::new_write(
id,
"".to_string(),
path,
false,
false,
files
.drain(..)
.map(|f| FileEntry {
@@ -172,7 +176,7 @@ impl ConnectionManager {
..Default::default()
})
.collect(),
od,
od,
));
}
ipc::FS::CancelWrite { id } => {