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 Link to comment https://forums.phpfreaks.com/topic/129117-tree-from-list/ 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 Link to comment https://forums.phpfreaks.com/topic/129117-tree-from-list/#findComment-669356 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.. Link to comment https://forums.phpfreaks.com/topic/129117-tree-from-list/#findComment-669359 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.