From 0ebbe40207f37bd7887970fe64a7fdcc71a5fe36 Mon Sep 17 00:00:00 2001 From: ChristianVisintin Date: Sun, 29 Nov 2020 16:37:25 +0100 Subject: [PATCH] Update dir after upload/download --- src/ui/activities/filetransfer_activity.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/ui/activities/filetransfer_activity.rs b/src/ui/activities/filetransfer_activity.rs index 2981137..5cd0568 100644 --- a/src/ui/activities/filetransfer_activity.rs +++ b/src/ui/activities/filetransfer_activity.rs @@ -413,6 +413,10 @@ impl FileTransferActivity { } } } + // Scan dir on remote + if let Ok(path) = self.client.pwd() { + self.remote_scan(path.as_path()); + } // Eventually, Reset input mode to explorer self.input_mode = InputMode::Explorer; } @@ -543,6 +547,8 @@ impl FileTransferActivity { } } } + // Reload directory on local + self.local_scan(local_path); // Eventually, Reset input mode to explorer self.input_mode = InputMode::Explorer; }