Ver código fonte

sftp: fixed folder refresh after uploading

Eugene Pankov 4 anos atrás
pai
commit
a9bcc0b206
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      tabby-ssh/src/components/sftpPanel.component.ts

+ 1 - 1
tabby-ssh/src/components/sftpPanel.component.ts

@@ -112,8 +112,8 @@ export class SFTPPanelComponent {
     }
 
     async uploadOne (transfer: FileUpload): Promise<void> {
-        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)
         }