Search code examples
c#.netftpftp-client

FTP a file in .net


I am looking to move a file from a directory on a server to a file share using a process running out that server already.

I want to know the best way to do this using the ftp protocol. My initial thoughts on how to do this were to use System.Net.FtpWebRequest... I will probably end up using this, but it looks like there may be some problems with it. To see what I mean check out the following link...'

See What I mean

That being said, in that article, he listed some other libraries that might be of use. Has anyone used any of these libraries? Would it be a good idea for me to try these out? Or should I just stick with FtpWebRequest. I will only be uploading a small file, and maybe it is not worth the time learning new libraries


Solution

  • If you are moving a file from a local server to a path accessible by network share from that server then there is no need to use FTP, you could just use File.Copy()