Search code examples
f#ftp

ftp programming in F#


I need to write a program in F# that should push files to an FTP server. Is there a library than I can use? I haven’t been able to find anything on the web. Can someone point me in t the right direction? If possible some sample code would be very helpful


Solution

  • System.Net.WebRequest.Create works well, when you give it a ftp:// URL.

    To get access to FTP-specific functionality (such as uploading files), cast your WebRequest object to FtpWebRequest.