We have been using WinSCP for a while now and recently we ran into an issue. The issue is when we are running the script to do a
put onto a client SFTP it pulls the file within our network and pushes the files to the client SFTP folder. If that server drive is not available or that server is down it takes the home directory as a possible directory and transfers files within that home directory. How can we have the script fail or stop when the network path is unavailable?