mirror of
https://github.com/Eugeny/tabby.git
synced 2024-11-27 06:00:26 +08:00
sftp: handle incorrect reported CWD
This commit is contained in:
parent
67ff355ca3
commit
49d58c69bc
@ -34,7 +34,12 @@ export class SFTPPanelComponent {
|
||||
|
||||
async ngOnInit (): Promise<void> {
|
||||
this.sftp = await this.session.openSFTP()
|
||||
await this.navigate(this.path)
|
||||
try {
|
||||
await this.navigate(this.path)
|
||||
} catch (error) {
|
||||
console.warn('Could not navigate to', this.path, ':', error)
|
||||
await this.navigate('/')
|
||||
}
|
||||
}
|
||||
|
||||
async navigate (newPath: string): Promise<void> {
|
||||
|
Loading…
Reference in New Issue
Block a user