Optimized code, with the newest fsentry methods

This commit is contained in:
ChristianVisintin
2020-12-12 17:33:15 +01:00
parent 912da10696
commit 3dcf33ebe2
2 changed files with 121 additions and 192 deletions

View File

@@ -331,7 +331,7 @@ impl FileTransferActivity {
// Get file at index
if let Some(entry) = files.get(self.local.index) {
// Call send (upload)
self.filetransfer_send(entry, wrkdir.as_path(), Some(input));
self.filetransfer_send(&entry.get_realfile(), wrkdir.as_path(), Some(input));
}
}
FileExplorerTab::Remote => {
@@ -340,7 +340,7 @@ impl FileTransferActivity {
if let Some(entry) = files.get(self.remote.index) {
// Call receive (download)
self.filetransfer_recv(
entry,
&entry.get_realfile(),
self.context.as_ref().unwrap().local.pwd().as_path(),
Some(input),
);