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

cfdirectory create diretory

Engaged ,
Sep 07, 2013 Sep 07, 2013

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,

Views

510

Translate

Translate

Report

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

Copy link to clipboard

Copied

LATEST

Hi,

Check the folder:

<cfif Not DirectoryExists(newFolder)>

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

</cfif>

Votes

Translate

Translate

Report

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
Documentation