Re: No such file or directory error after lost connection and reconnect
Before reconnect is works, because you have an explicit
After reconnect, WinSCP tries to restore what it (incorrectly) believes was the current working directory:
Instead, WinSCP might use the path that the server provided:
That's why I'm asking if this would work:
It is hard to make WinSCP do:
It might seem easy with your simple script. But a more complex script might do multiple
cd
command.
After reconnect, WinSCP tries to restore what it (incorrectly) believes was the current working directory:
/'XZH081P.Z.TDF42C.'
Instead, WinSCP might use the path that the server provided:
257 "'XZH081P.Z.TDF42C.'" is working directory.
That's why I'm asking if this would work:
CWD 'XZH081P.Z.TDF42C.'
It is hard to make WinSCP do:
CWD //XZH081P.Z.TDF42C
It might seem easy with your simple script. But a more complex script might do multiple
cd
commands with relative paths and WinSCP would have to replay them all.