i am facing problem in getting server directory.i am able to connect to server but i am not understand which method i use to get server files and folder for downloading. please help me how can i get server files and folder which are permitted for download..

Thanks in advance.

asked 22 Oct '10, 06:19

Neha's gravatar image

Neha
16
accept rate: 0%

edited 22 Oct '10, 14:28

Rebex%20KB's gravatar image

Rebex KB ♦♦
258519


I'm afraid we need to know which files and folders you wish to download before first.

Have you seen our tutorial about how to upload or download a single file, how to upload or download multiple files and how to get a list of files and folders? These should provide some information to get you started.

Or, if you just wish to download all server files and folders, call the GetFiles method with "*" argument:

// create client, connect and log in 
Ftp client = new Ftp();
client.Connect("ftp.example.org");
client.Login("username", "password");

// download all files to the specified local path (such as "c:\data\ftp")
client.GetFiles("*", localPath, FtpBatchTransferOptions.Recursive);
link

answered 22 Oct '10, 10:42

Lukas%20Pokorny's gravatar image

Lukas Pokorny ♦♦
2.4k28
accept rate: 31%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×152
×13

Asked: 22 Oct '10, 06:19

Seen: 327 times

Last updated: 25 Mar '11, 21:23