in reply to Re^3: tree command
in thread tree command
Okay. So would you mind telling me how I could filter out:
without iterating over the content of the directory and know in advance that the last 3 items in my list don't count?
Example: I have in my list [ a b c d e ] where b, d and e are files, which I do not want to display, while a and c are the directories to show. How would I know that in advance?
With my approach I filter b, d and e out, leaving me with just [ a c ]. So I know that after "c" there won't be any more files or directories to be displayed.
How would you achieve this?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: tree command
by choroba (Cardinal) on Oct 14, 2015 at 09:45 UTC | |
by Skeeve (Parson) on Oct 14, 2015 at 11:31 UTC | |
by choroba (Cardinal) on Oct 14, 2015 at 12:25 UTC | |
|
Re^5: tree command
by RichardK (Parson) on Oct 14, 2015 at 09:17 UTC | |
by Skeeve (Parson) on Oct 14, 2015 at 15:45 UTC |