Using System.IO namespace for FTP operations
I have a few syncing routines that I'd like to use for FTP uploads. However they all use th开发者_JS百科e functions in the IO namespace, and I was wondering whether I could use it to access distant files stored on an FTP server.
Maybe should I mount the distant server as a network drive? Is there a way to do this programatically?
Thanks,
CFP.FTP functions in .NET are under the System.Net namespace. You want the FtpWebRequest object.
See this article for more information: http://msdn.microsoft.com/en-us/library/system.net.ftpwebrequest.aspx
精彩评论