Re: Avoiding 0 kb files using (get -delete)
You are right, I've forgot about this.
Well, you can enable XML logging, use just
See this example script (for completely different task), which shows you how to parse the XML log to get filenames and how to generate script.
EDIT (2021): The
Well, you can enable XML logging, use just
get
then parse the XML log to see what file got downloaded and generate another script to delete those files.
See this example script (for completely different task), which shows you how to parse the XML log to get filenames and how to generate script.
EDIT (2021): The
-delete
now works with -filemask
. For advanced code, you can now also use WinSCP .NET assembly instead, as the updated article linked above shows.