profwannabe
Programmer
I need to dynamically generate folders and subfolders into which a file will be posted using <cffile>. The folder name = #attributes.ClientName# and the subfolder is #attributes.ContractTitle#.
I can create the folders using <cfdirectory> without problem. However, I need to evaluate whether or not those folders exist.
<cfdirectory action="LIST" directory="#directoryroot#\documents" name="CheckDirectory">
... shows me any ClientName folders. How do I evaluate the query results to see if CheckDirectory.#Name# = #attributes.ClientName#? Using <cfif> I can then avoid trying to create a folder that already exists (which is the error I cannot seem to avoid).
I can create the folders using <cfdirectory> without problem. However, I need to evaluate whether or not those folders exist.
<cfdirectory action="LIST" directory="#directoryroot#\documents" name="CheckDirectory">
... shows me any ClientName folders. How do I evaluate the query results to see if CheckDirectory.#Name# = #attributes.ClientName#? Using <cfif> I can then avoid trying to create a folder that already exists (which is the error I cannot seem to avoid).