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

@@ -974,7 +974,7 @@ impl Connection {
let id = s.id;
let od =
can_enable_overwrite_detection(get_version_number(VERSION));
match fs::TransferJob::new_read(id, s.path.clone(), s.include_hidden) {
match fs::TransferJob::new_read(id, s.path.clone(), s.include_hidden, od) {
Err(err) => {
self.send(fs::new_error(id, err, 0)).await;
}