In short, I need a batch FTP file downloader, should be recursive to downloading EVERYTHING that exists on that server in all directories.
Input file is a CSV file with fields:
ID#, FTP-HOST, user, password
ex:
"34","[login to view URL]","ftpusername","ftppassword"
It should then create a directory locally in "downloads" named the ID#, and download all files there (and keeping directory structure in place)
Using the above csv example, if the exe is in C:\ftpdl\ and it ran on the above example, it will download all files into "C:\ftpdl\downloads\34"
Should also have a very basic run log called [login to view URL] that says whether the specific ftp downloaded all files successfully, and if not a simple reason. (cant connect to host, invalid credentials, etc..)
Making this a simple console application is prefered, and use pure winsock. no curl or similar external library.
I also want source code along with the exe.