By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,638 Members | 2,204 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,638 IT Pros & Developers. It's quick & easy.

Transform a list of file paths into a treeview

P: n/a
jnc
Hi,

I was wondering if anybody had any pointers on the following:

I need to write some code which takes a list of file paths and
transforms them into a treeview which shows the directory structure of
the file paths.

Cheers.....Jim
Jul 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: 1
Hi,

I was wondering if anybody had any pointers on the following:

I need to write some code which takes a list of file paths and
transforms them into a treeview which shows the directory structure of
the file paths.

Cheers.....Jim

There are three ways..

1) Brute force:
Create a temporaray directory and copy all the nodes there... Obviously your root node would be the temp directory.

2) You can use the DirectoryInfo or FileInfos to do the job... in .NET

3) Create Dictionary of Paths where values are either null or files.. alrighty

Cheers :)

Shams
Apr 2 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.