WinSCP - Download files with specific extension recursively
The WinSCP FTP client support scripting as we can read on https://winscp.net/eng/docs/guide_automation.
In a previous life, I was often faced with the need to download a certain type of file, e.g. connect to an FTP server and retrieve PHP files locally for analysis.
Since WinSCP allows automation, it's easy to write a little script to do just that.
As an example, we'll thus download any .php
files from a host.