开发者

Using System.IO namespace for FTP operations

开发者 https://www.devze.com 2023-01-12 12:12 出处:网络
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 f

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

0

精彩评论

暂无评论...
验证码 换一张
取 消