TeaAddictedGeek
Programmer
...and I'm fresh out of ideas.<br>
<br>
Here's the code:<br>
<br>
<br>
<cfif DirectoryExists(#source.s_path#) IS "Yes"><br>
blah blah blah copy dir blah blah blah<br>
<cfelse><br>
Sorry, the directory doesn't exist.<br>
</cfif><br>
<br>
source.s_path *works*, there's nothing wrong with that variable whatsoever. The code within the cfif statement was there to begin with, and outputs with no probs.<br>
<br>
Here's the exact error statement I get:<br>
<br>
---<br>
Error Diagnostic Information<br>
An error has occurred while processing the expression:<br>
<br>
DirectoryExists(#source.s_path#) IS "Yes<br>
<br>
The error occurred on (or near) line 50 of the template file trigger_copy.cfm.<br>
<br>
46: </center><P><br>
47: <cfif d_id is " "><br>
48: <cfabort><br>
49: </cfif><br>
50: <br>
51: <cfif DirectoryExists(#source.s_path#) IS "Yes"><br>
52: <cfif DirectoryExists(#source.d_path#) IS "Yes"><br>
<br>
There is no Cold Fusion function named DirectoryExists. Check the spelling of the function name in the Cold Fusion documentation.<br>
---<br>
<br>
<br>
Please help! I *know* that this command exists; I looked it up myself. I'm using SQL Server 7.0. <br>
<br>
Am I using it incorrectly somehow?<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
Here's the code:<br>
<br>
<br>
<cfif DirectoryExists(#source.s_path#) IS "Yes"><br>
blah blah blah copy dir blah blah blah<br>
<cfelse><br>
Sorry, the directory doesn't exist.<br>
</cfif><br>
<br>
source.s_path *works*, there's nothing wrong with that variable whatsoever. The code within the cfif statement was there to begin with, and outputs with no probs.<br>
<br>
Here's the exact error statement I get:<br>
<br>
---<br>
Error Diagnostic Information<br>
An error has occurred while processing the expression:<br>
<br>
DirectoryExists(#source.s_path#) IS "Yes<br>
<br>
The error occurred on (or near) line 50 of the template file trigger_copy.cfm.<br>
<br>
46: </center><P><br>
47: <cfif d_id is " "><br>
48: <cfabort><br>
49: </cfif><br>
50: <br>
51: <cfif DirectoryExists(#source.s_path#) IS "Yes"><br>
52: <cfif DirectoryExists(#source.d_path#) IS "Yes"><br>
<br>
There is no Cold Fusion function named DirectoryExists. Check the spelling of the function name in the Cold Fusion documentation.<br>
---<br>
<br>
<br>
Please help! I *know* that this command exists; I looked it up myself. I'm using SQL Server 7.0. <br>
<br>
Am I using it incorrectly somehow?<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>