Unable to sftp file: TEST.%7C
When I try to transfer file
Looks like the hex code at the end of the filename is causing problems. Is there a solution for this? I can transfer the file fine if I use Windows' built in CLI SFTP program, but it fails with WinSCP.
I've tried adding the line
TEST.%7C
via PowerShell script (via the SynchronizeDirectories
command), I get an error that TEST.|
fails.
Looks like the hex code at the end of the filename is causing problems. Is there a solution for this? I can transfer the file fine if I use Windows' built in CLI SFTP program, but it fails with WinSCP.
I've tried adding the line
$transferOptions.AddRawSettings("ReplaceInvalidChars", "1")
to my code, but the script continue to try and upload the file as TEST.|
.