fixed relative symlink resolution - fixes #4119

This commit is contained in:
Eugene Pankov
2021-07-04 19:35:27 +02:00
parent e17ba8c351
commit 025d2d1748
@@ -77,7 +77,7 @@ export class SFTPPanelComponent {
if (item.isDirectory) {
this.navigate(item.fullPath)
} else if (item.isSymlink) {
const target = await this.sftp.readlink(item.fullPath)
const target = path.resolve(this.path, await this.sftp.readlink(item.fullPath))
const stat = await this.sftp.stat(target)
if (stat.isDirectory) {
this.navigate(item.fullPath)