Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

cfdirectory create diretory

Engaged ,
Sep 07, 2013 Sep 07, 2013

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,

544
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Sep 09, 2013 Sep 09, 2013
LATEST

Hi,

Check the folder:

<cfif Not DirectoryExists(newFolder)>

    <cfdirectory action = "create" directory="#newFolder#" />

</cfif>

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources