Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
4.6k views
in .NET FTP by (280 points)
Hi

I'm using the Free version of edtFTPnet.
To download a single file, it is working fine, but I want a recursive download, i.e. I want download a full directory with all of its files and folders.

can anyone give me the idea, how it would done?

Thanks & Regards,
Mukesh

8 Answers

0 votes
by (162k points)
This isn't supported in edtFTPnet.

You can either implement it yourself using FTPClient's DirDetails() method, or take a look at edtFTPnet/PRO (our commercial derivative), whose comprehensive API includes directory transfers.

See http://www.enterprisedt.com/products/ed ... rview.html for more details, and see

http://www.enterprisedt.com/products/ed ... nload.html for a trial download.

Hi

I'm using the Free version of edtFTPnet.
To download a single file, it is working fine, but I want a recursive download, i.e. I want download a full directory with all of its files and folders.

can anyone give me the idea, how it would done?

Thanks & Regards,
Mukesh
0 votes
by (280 points)
Thanks Bruce,

I sholud implement that by using FTPClient DirDetails.

But suggest me one more thing, as I forget u telling the version that I used.
I used the version 1.2.2, and I think in this version, there is a option instead of using FTPClient, I
can use FTPConnection.

Plz suggest me there is any method in FTPConnection to implement the same.

Thanks & Regards,
Mukesh
0 votes
by (51.6k points)
Yes, the equivalent method in FTPConnection is GetFileInfos().

- Hans (EDT)
0 votes
by (280 points)
Ok, Thanks Hans

oh now I got the point, FTPConnection is nothing but the next version of FTPClint.

Every method wreitten in FTPConnection, call the respective method of FTPClint.

Thanks a lot once again.
Mukesh
0 votes
by (51.6k points)
Yup, that's exactly right. Sorry if it was confusing.

- Hans (EDT)
0 votes
by (280 points)
Hi Hans,

Yes, I done it, now I can able to download the Directory(recursively) from the remote server to the local
system including all of there folders and files.

Thanks for ur kind suggesstion.

Regards,
Mukesh
0 votes
by (280 points)
Hi

Just tell me one more thing, as for dir listing u people used ListBox, but if I want to use ListView,
then it through a compile time error.

I's using listview.addrange () method, the same that was used in Listbox.

Plz help me to sort this prob..

Thanks & Regards,
Mukesh
0 votes
by (51.6k points)
The items in a ListBox are simply System.Objects, whose ToString() method gets called when rendering the list. The items in a ListView must be ListViewItems, so if you use AddRange, you'll need to make sure that the items in the array you are adding are ListViewItem objects.

- Hans (EDT)

Categories

...