I found that the logic to enter the directory is to modify the breadcrumbs path first and then enter the directory. If the enter the directory fails, the breadcrumbs path is not fallbacked.
Steps to reproduce
directory structure
app
└─ test
└─ 新文件夹
enter the app/test directory, which contains a Chinese folder
output the following log
Changed directory on remote: /app
Changed directory on remote: /app\test
Could not scan current directory: protocol error (Response contains an invalid syntax)
Tip: You may have found a wrong path (/app\test) output on Windows
The breadcrumbs path is still <ip>:/app/test, even though entering that directory has failed.
Expected behaviour
Try to enter the directory first, and then update the breadcrumbs after entering successfully.
Description
I found that the logic to enter the directory is to modify the breadcrumbs path first and then enter the directory. If the enter the directory fails, the breadcrumbs path is not fallbacked.
Steps to reproduce
app/test
directory, which contains a Chinese folder<ip>:/app/test
, even though entering that directory has failed.Expected behaviour
Try to enter the directory first, and then update the breadcrumbs after entering successfully.
Environment