Re: Script - Check if file exists on local drive before downloading
Do I understand right, that you want to download a file only, if it does not exist already in a different folder than the download/destination folder?
There's no easy way to do this in WinSCP scripting.
But if you use WinSCP .NET assembly from a full-featured language, like PowerShell, it's trivial.
For some example, see:
https://winscp.net/eng/docs/library_example_check_existence_timestamp#powershell
You will just want to test the "processed" folder instead of the downloaded folder in the:
There's no easy way to do this in WinSCP scripting.
But if you use WinSCP .NET assembly from a full-featured language, like PowerShell, it's trivial.
For some example, see:
https://winscp.net/eng/docs/library_example_check_existence_timestamp#powershell
You will just want to test the "processed" folder instead of the downloaded folder in the:
if (!(Test-Path $localPath))