I have more or less just begun to work with tcl. After spending the past two weeks reading up on it and trying out all the neat features, I came up with some pretty nifty ideas for a tcl project (no the ideas aren’t relatively new).
But… (I bet you saw this one coming didn’t you?) I can’t seem to find out how to use tcl to read the number of directories in a given folder. I’m too tired to give a fancy example so let me whip up a quick doodle to illustrate (please keep the laughter to a minimal):
/area_51
-/out_there
--/moo
--/arf
--/meow
(note: the dash represents the directory depth)
Now suppose the given folder was /area_51/out_there/
What I am trying to do is figure out how I will able to use tcl to read this folder and display some kind of output similar to:
Soldier: I’m not at liberty to tell you that we have 3 sounds stored out there. $@#%.



Now, the thing is, we don’t know the names of the directories in the given folder.
I’m assuming it’s possible to use some kind of wildmask? Actually at this point, I’m hoping it’s possible.
Q