Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Reproduce DOS 'tree' command to a real directory structure

843810Sep 23 2008 — edited Sep 24 2008
Hi guys,

I have the output of a DOS 'tree' command (small example below). And I'm trying to reproduce the output of this command (directories and files) as another directory structure, I've tried several different things with no real luck. My biggest problem is that I'm unable to get the logic down to correctly nest directories. I was just wondering if anyone would be able to give me any code examples to help me out, it's a long shot as what I'm doing is pretty abstract, but any advice or code would be a great help.

Thanks, aqzman
+---Eagle Files
|   |   DESCRIPTION
|   |
|   +---AnalogFE1
|   |   |   ANALOGFE1C.brd
|   |   |   ANALOGFE1C.sch
|   |   |   ANALOGFE1D.sch
|   |   |   ANALOGFE1E.brd
|   |   |   ANALOGFE1E.s#1
|   |   |   ANALOGFE1E.sch
|   |   |   DESCRIPTION
|   |   |   eagle.epf
|   |   |
|   |   +---V2
|   |           ANALOGFE1B.b#1
|   |           ANALOGFE1B.b#2
|   |           ANALOGFE1B.b#3
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 22 2008
Added on Sep 23 2008
2 comments
54 views