0

I needed to download files from FTP using vb.NET. 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

Community
  • 1
  • 1
Haseeb Zahid
  • 614
  • 6
  • 20

2 Answers2

0

The CodeProject FTP library you are using isnt exactly great for recursive access.

Check out the answer here. Its c# but answers your question. You can (almost) always convert c# to vb.net!

Community
  • 1
  • 1
Sam Makin
  • 1,526
  • 8
  • 23
  • I think you should be a bit more specific about which post you mean, since none of the answers are accepted. – WozzeC Apr 14 '14 at 11:17
0

You can do it with lftp in a one liner.

lftp -e "set ftp:ssl-allow off;  mirror  htdocs/assets/" -d -u 
username,password  ftp://ftpwhatever.net/htdocs/

This will copy the whole directory /assets/ to your local working directory

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
Steve0
  • 17
  • 7