Copy link to clipboard
Copied
I want to create a sub folder at run time and want to use cfdirectory to create new diretory.
I do not see override option on the cfdirectory tag, it seems that I need to use FileExists to check before create,
Please let me know if I am wrong,
Your information and help is great appreciated,
regards,
Iccsi,
Copy link to clipboard
Copied
Hi,
Check the folder:
<cfif Not DirectoryExists(newFolder)>
<cfdirectory action = "create" directory="#newFolder#" />
</cfif>