Open Source C# FTP Library

The title says it all.  Get it here.

One thing I would say - the developers have a bit of a curious naming convention in their library.  I think they've tried to be true to the FTP commands that one might use from a command line, rather than OO-ing it.  For example, there's a method called "User" for setting the username, rather than a property.

Otherwise, seems to work fine.  Has source code if it doesn't!

6 Comments




  • I picked up this code about and have been using it in production and it works great!

  • Actually, depending on implementation, the method User() is argueably the correct design, as it may take some time for the remote FTP host to respond to the USER command.





    In general, when deciding to use a method or a property, a method is best used when the response is generally instantaneous and the underlying data is not going to change unexpectedly, and a method is generally appropriate when either of the above are not true.


    In this case, while the username is not likely to change, the method may take some time to complete, therefore exposing the USER attribute as a method is correct.

  • You should submit this one to Fabrice at www.sharptoolbox.com, if it's not there already.

  • When getting large ascii files I suppose the buffer fills up resulting in only about 65 lines written.

  • How can I download this free source for FTP?

  • How can I download this free source for FTP?



    You are just a big wast of time? No .NET free source code, not even a . less NET.

Comments have been disabled for this content.