kingpin393 Posted October 19, 2008 Share Posted October 19, 2008 Hi I have a list of files in an array: /dir1/file.txt /dir2/dir3/file.txt /file.txt ... I want to create a tree list from that: -dir1 -file.txt -dir2 -dir3 -file.txt -file.txt ... How could I go about this? (in the original array I know what items are files and which are directories if that helps...) Thanks, Kevin Quote Link to comment Share on other sites More sharing options...
grim1208 Posted October 19, 2008 Share Posted October 19, 2008 trying to use a multi-dimensional array? like .... array[dir_a][dir_b][file] ? if so they are going over that here Quote Link to comment Share on other sites More sharing options...
kingpin393 Posted October 19, 2008 Author Share Posted October 19, 2008 i was thinking either that or xml... not sure how to do either.. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.