ComponentPro is a professional suite of libraries for FTP, sFTP and document manipulations (Word, Excel, PDF, …).

Here is a simple example of how to use it with (s)FTP.