Appropriate collection for variable-depth list?

Posted by George R on Stack Overflow See other posts from Stack Overflow or by George R
Published on 2010-03-09T07:44:05Z Indexed on 2010/03/09 7:51 UTC
Read the original article Hit count: 170

Filed under:
|
|
|

If I wanted to have a collection that described the (recursive) contents of a root directory, including directories and files, how would I store them? Or do I need to come up with an object that holds: -Current directory -Parent directory -Files in directory

..and slap them all in one big list and manually work out the relationship at runtime from each entries Parent directory.

© Stack Overflow or respective owner

Related posts about collection

Related posts about list