Thank you for the code sample. That worked great.
I am creating a batch file to sftp files to another server. Sometimes the application that creates the files will create empty files. I do not want to send these, but have not found a way to exclude them.
Any guidance would be great.