mirror of
https://github.com/Eugeny/tabby.git
synced 2026-08-24 02:34:19 -05:00
fix(ssh): prevent SFTP path navigation freeze (#11393)
This commit is contained in:
@@ -61,12 +61,16 @@ export class SFTPPanelComponent {
|
||||
|
||||
let p = newPath
|
||||
this.pathSegments = []
|
||||
while (p !== '/') {
|
||||
while (p !== '/' && p !== '.') {
|
||||
this.pathSegments.unshift({
|
||||
name: path.basename(p),
|
||||
path: p,
|
||||
})
|
||||
p = path.dirname(p)
|
||||
const parent = path.dirname(p)
|
||||
if (parent === p) {
|
||||
break
|
||||
}
|
||||
p = parent
|
||||
}
|
||||
|
||||
this.fileList = null
|
||||
|
||||
Reference in New Issue
Block a user