Re: Parent folder on SFTP being automatically created in local folder
It should be:
See https://winscp.net/eng/docs/library_session_getfiles#remotepath
Or even easier, use
See also https://winscp.net/eng/docs/faq_script_vs_gui#inputs
sFtppath + "*"
See https://winscp.net/eng/docs/library_session_getfiles#remotepath
Or even easier, use
Session.GetFilesToDirectory
:
TransferOperationResult operationResult =
_oSession.GetFilesToDirectory(
sFtppath,
sNetpath,
options: transferOptions);
See also https://winscp.net/eng/docs/faq_script_vs_gui#inputs