mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-19 19:21:13 +03:00
@@ -2274,6 +2274,22 @@ impl Connection {
|
||||
job.confirm(&r);
|
||||
}
|
||||
}
|
||||
Some(file_action::Union::Rename(r)) => {
|
||||
self.send_fs(ipc::FS::Rename {
|
||||
id: r.id,
|
||||
path: r.path.clone(),
|
||||
new_name: r.new_name.clone(),
|
||||
});
|
||||
self.send_to_cm(ipc::Data::FileTransferLog((
|
||||
"rename".to_string(),
|
||||
serde_json::to_string(&FileRenameLog {
|
||||
conn_id: self.inner.id(),
|
||||
path: r.path,
|
||||
new_name: r.new_name,
|
||||
})
|
||||
.unwrap_or_default(),
|
||||
)));
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
@@ -3451,6 +3467,14 @@ struct FileActionLog {
|
||||
dir: bool,
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
struct FileRenameLog {
|
||||
conn_id: i32,
|
||||
path: String,
|
||||
new_name: String,
|
||||
}
|
||||
|
||||
struct FileRemoveLogControl {
|
||||
conn_id: i32,
|
||||
instant: Instant,
|
||||
|
||||
Reference in New Issue
Block a user