Re: GetFiles with Remove set to true deletes empty directory
What folder? There's no folder in your code.
Anyway, it should be:
See documentation:
https://winscp.net/eng/docs/library_session_getfiles#remotepath
Anyway, it should be:
session.GetFiles("/*", _mySettings.DownloadDirectory, true, transferOptions)
See documentation:
https://winscp.net/eng/docs/library_session_getfiles#remotepath