sftp: fixed folder refresh after uploading

This commit is contained in:
Eugene Pankov
2022-03-30 14:20:06 +02:00
parent aee6ae907d
commit a9bcc0b206

View File

@@ -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)
}