mirror of
https://github.com/veeso/termscp.git
synced 2025-12-07 09:36:00 -08:00
WIP
This commit is contained in:
@@ -749,6 +749,12 @@ impl FileTransferActivity {
|
||||
if push {
|
||||
self.local.pushd(prev_dir.as_path())
|
||||
}
|
||||
// @! if synchronized browsing is enabled, change directory on remote too ~ since 0.5.0
|
||||
if self.browser.sync_browsing {
|
||||
if let Some(name) = path.file_name() {
|
||||
self.remote_changedir(PathBuf::from(name).as_path(), push);
|
||||
}
|
||||
}
|
||||
}
|
||||
Err(err) => {
|
||||
// Report err
|
||||
@@ -778,6 +784,13 @@ impl FileTransferActivity {
|
||||
if push {
|
||||
self.remote.pushd(prev_dir.as_path())
|
||||
}
|
||||
// @! if synchronized browsing is enabled, change directory on local too ~ since 0.5.0
|
||||
if self.browser.sync_browsing {
|
||||
if let Some(name) = path.file_name() {
|
||||
self.local_changedir(PathBuf::from(name).as_path(), push);
|
||||
// TODO: move this somewhere else, since it's calling recursively
|
||||
}
|
||||
}
|
||||
}
|
||||
Err(err) => {
|
||||
// Report err
|
||||
|
||||
Reference in New Issue
Block a user