0
votes

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

1
You'll have to call the function recursively. Have a look at what you get if you run GetDirectories.WozzeC
It gets the path of the current directory.Reaper211
No not GetDirectory, GetDirectories. Something like this: "For Each dir As FTPfileInfo In ftp.ListDirectoryDetail("/").GetDirectories"WozzeC

1 Answers

0
votes

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!