add: job logic

This commit is contained in:
Kingtous
2022-05-12 15:55:36 +08:00
parent 2caa2db463
commit 11e0d2cbf1
5 changed files with 89 additions and 6 deletions

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 } => {