473,399 Members | 3,888 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 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 1965
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: rsine | last post by:
I need to know all the directories that exist within a given location. Is there a way to get such a listing? Any help is appreciated. *** Sent via Developersdex http://www.developersdex.com...
4
by: rn5a | last post by:
I have a ListBox which should list all the files & directories that exist in a particular directory. The problem is I can get the ListBox to list either all the files or all the directories but not...
1
by: rn5a | last post by:
A ListBox lists all the folders & files existing in a directory named 'MyDir' on the server. Assume that the ListBox lists 2 directories - 'Dir1' & 'Dir2' i.e. these 2 directories reside in the...
3
by: gss.italy | last post by:
I know variuos way to enumerate sql server in VB and VBA but is possible to have the same for DB2 server????
17
by: =?Utf-8?B?RGF2ZQ==?= | last post by:
I have set up a virtual directory using IIS. Whenever, I load a web page of type .htm, I have no problem. Whenever I run a .aspx page I get the statement below. I am running on XP Pro, both...
4
by: weird0 | last post by:
I have written a webservice locally, and upon consuming or testing it in the explorer there is a problem. It throws the following exception: System.Data.SqlClient.SqlException: An error has...
63
by: David Mathog | last post by:
There have been a series of questions about directory operations, all of which have been answered with "there is no portable way to do this". This raises the perfectly reasonable question, why,...
7
by: David T. Ashley | last post by:
In a web database (PHP), per user, I'd like to allow each user to specify their timezone (this would change how times are adjusted for display for that user). How do I enumerate all possible...
2
by: DoB | last post by:
Hi, I would like to get the list of full paths of all files that are currently opened by any process in the system. Is this possible? In short: my program moves a bunch of directories and I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.