note
FoxtrotUniform
<p><i>Can you show me how to validate the existence of a
directory?</i></p>
<p>You want the file test operators, specifically -d.</p>
<p><i>If the directory name has a space in between, what
should I do?</i></p>
<p>Nothing special, as long as you have the whole dir
name instead of just the first word.</p>
<p><i>And how to capture all the files under a directory?
</i></p>
<p><tt>opendir, readdir, closedir</tt>.</p>
<p><i>And God bless all Monks!</i></p>
<p>Which one?</p>
<tt>-- <br>
:wq</tt>
139960
139960