Enumerate directories on a FTP Server

  • Thread starter Thread starter sri_san
  • Start date Start date
S

sri_san

Hello,
I wonder if there is a way to enumerate the directories ( not
the files in a directory) on a FTP Server? There has to be. Just that I
am not sure how to implement it in C#/VB.NET.

Thanks,
Sam.
 
To do this you must connect using the FTP protocol and issue a LIST
command which will return a directory listing on the server. You must
then parse the directory listing to determine which entries are
directories v.s. those which are files.

for an API consider Secure FTP Factory for .NET

http://www.jscape.com/sftpdotnet/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top