mirror of
https://github.com/eugeny/tabby
synced 2026-08-28 08:46:57 +00:00
fixed relative symlink resolution - fixes #4119
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user