Firstly I would like to thank you for providing such a useful application. While I am having an issue with my script currently, I am finding WinSCP very useful.
My issue is that while syncing a fileshare with Box.com via WinSCP using a powershell script, I find that the script is not applying the ReplaceInvalidChars transfer option to what appears to be only the directories. If the directory does not have invalid characters yet the filename does, ReplaceInvalidChars transfer option works correctly. This does however work on both directories and filenames from GUI. My configuration is as follows:
WinSCP Version: 5.15.1 (Build 9407)
Windows Version: Server 2016
Transfer Protocol: FTPS
Transfer method: PowerShell script
Errors encounter: Log file attached
As this works from GUI but not my script, I am sure my script is the culprit. I am not great with powershell, and less than literate when it comes to .NET, so any assistance would be greatly appreciated.