below Is code I used in cf 4.5 but seems to crash in mx 7. I see that cfdirectory has changed a little but am not sure why it crashes my page.
The goal of the code is to create a folder if it is not found
<cfdirectory action="list" directory="c:/websites/port/artifacts/bsmith" name="myDirectory">
<cfif myDirectory.recordcount eq 0>
<cfdirectory action="create" directory="c:/websites/port/artifacts/bsmith">
</cfif>
The goal of the code is to create a folder if it is not found
<cfdirectory action="list" directory="c:/websites/port/artifacts/bsmith" name="myDirectory">
<cfif myDirectory.recordcount eq 0>
<cfdirectory action="create" directory="c:/websites/port/artifacts/bsmith">
</cfif>