Lately I’ve been asked about doing FTP related stuff in .NET .
There appear to be many “Ftp Clients” out there on CodeProject and other sites.
I really don’t get ‘em.
They are simple a leaky abstraction on top of straightforward BCL classes.
So what my solution is?
This basic notepad code covers most of the functionality in FtpWebRequest. You can easily set Binary/ASCII, Active/Passive, Credentials and whatnot.
Alternatively, in some cases you can just spawn a ftp.exe process with a simple ftp script. Anyway you can rid yourself from unneeded leaky abstractions.