|Syntactic Confectionery Delight|
Re: Opening a Directoryby FoxtrotUniform (Prior)
|on Jan 19, 2002 at 01:48 UTC||Need Help??|
Can you show me how to validate the existence of a directory?
You want the file test operators, specifically -d.
If the directory name has a space in between, what should I do?
Nothing special, as long as you have the whole dir name instead of just the first word.
And how to capture all the files under a directory?
opendir, readdir, closedir.
And God bless all Monks!