_session.GetFiles(remoteFilePath + "/*.*", localFilePath, removeSource, _transferOptions);
Recursive calls not allowed
at WinSCP.CallstackAndLock..ctor(Logger logger, Lock alock)
at WinSCP.Session.MoveFile(String sourcePath, String targetPath)
I've a solution that works albeit temporarily whereby I create a second session just to move the files, but if the session is idle for too long even with the ReconnectTime set to TimeSpan.MaxValue, the remote server closes the connection. I've added the Session log and debug log option, but it hasn't been helpful since the app can't tell me the session has been closed until I try to archive a file.
Any help would be appreciated.