On Wed, 02 Mar 2011 00:12:20 -0800, petermity <6t12-n6js(a)dea.spamcon.org> wrote:
How can I check for the existence of a snippet file before
attempting to include it? That is, something like this:
#set $mysnippet = $mysnipdir + '/mysnipfile'
#if file_exists('$mysnippet')
$SNIPPET('$mysnippet')
#end if
I believe the snippet code will simply not do anything if the snippet
you include doesn't exist. If not, I think we should do that. Perhaps
leaving behind a '#SNIPPET foo not found'.
--
Scott Henson
Red Hat CIS Operator
WVU Alum BSAE/BSME