![]() |
|
#1
|
|||
|
|||
*nix directory structure to tree objectI'm a C++ noob, and haven't done anything where I need to interact with the file structure yet. My environment is Mac OSX and Ubuntu Linux. I have some experience with Java, Bash scripting, and AppleScript.
I've found plenty of tutorials about how to read/write a single file, but I can't find anything on how to deal with a folder and it's sub-folders. I want to take a folder (~/MyClipart) and create a recursive tree structure of it's contents. The top level node would be ~/MyClipart. Each node would represent either a folder or a file. Of course folder-nodes could have child nodes. I can handle making the tree, but I don't know how to get the file system info to populate the tree. Thanks for the help, Michael |
|||
|
#3
|
||||
|
||||
|
here is a good link, that should get you started in the right direction
http://www.codecomments.com/message222411.html __________________
Xrum! |
|
#4
|
|||
|
|||
Thank youThank you, that's just what I was looking for.
Michael |
Recent GIDBlog
Not selected for officer school by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Displaying node attributes in an XML tree display | njp01u | MS Visual C++ / MFC Forum | 2 | 07-Feb-2005 17:42 |
| Apache2 config issues | monev | Apache Web Server Forum | 2 | 28-Jun-2004 06:19 |
| [CONTEST?]Data Structure Test | dsmith | C Programming Language | 2 | 06-Jun-2004 15:13 |
| Can't view pages from another machine on the Intranet | aevans | Apache Web Server Forum | 9 | 14-May-2004 02:26 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The