简体   繁体   English

从FTP下载文件和文件夹

[英]Download files and folders from FTP

I needed to download files from FTP using vb.NET. 我需要使用vb.NET从FTP下载文件。 I found the solution to my problem over here . 我在这里找到了解决我问题的方法。

The problem now is that the code helps me to download the files from the parent folder but if there are any sub-folders, they remain untouched. 现在的问题是该代码可以帮助我从父文件夹下载文件,但是如果有子文件夹,则它们保持不变。 Is there a work-around for it? 是否有解决方法? Regards 问候

The CodeProject FTP library you are using isnt exactly great for recursive access. 您正在使用的CodeProject FTP库对于递归访问而言并不理想。

Check out the answer here . 这里查看答案。 Its c# but answers your question. 它的C#,但可以回答您的问题。 You can (almost) always convert c# to vb.net! 您可以(几乎)始终将c#转换为vb.net!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM