diff --git a/tabby-ssh/src/components/sftpPanel.component.ts b/tabby-ssh/src/components/sftpPanel.component.ts index 599e841f..96ba5ee0 100644 --- a/tabby-ssh/src/components/sftpPanel.component.ts +++ b/tabby-ssh/src/components/sftpPanel.component.ts @@ -112,8 +112,8 @@ export class SFTPPanelComponent { } async uploadOne (transfer: FileUpload): Promise { - await this.sftp.upload(path.join(this.path, transfer.getName()), transfer) const savedPath = this.path + await this.sftp.upload(path.join(this.path, transfer.getName()), transfer) if (this.path === savedPath) { await this.navigate(this.path) }