$remotePath = "/destinationFolder",
Needed to be this:
$remotePath = "/destinationFolder/",
Hope somebody finds this useful in the future.
https://winscp.net/eng/docs/library_session_putfilesFull path to upload the file to. When uploading multiple files, the filename in the path should be replaced with operation mask or omitted (path ends with slash).
You can post new topics in this forum