471,627 Members | 1,571 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,627 software developers and data experts.

Enumerate directories on a FTP Server

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.

Feb 10 '06 #1
1 1888
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/
sr*****@mailcity.com wrote:
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.


Feb 10 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by rsine | last post: by
4 posts views Thread by rn5a | last post: by
1 post views Thread by rn5a | last post: by
3 posts views Thread by gss.italy | last post: by
17 posts views Thread by =?Utf-8?B?RGF2ZQ==?= | last post: by
63 posts views Thread by David Mathog | last post: by
7 posts views Thread by David T. Ashley | last post: by
2 posts views Thread by DoB | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.