Skip navigation
Currently Being Moderated

cfdirectory create diretory

Sep 7, 2013 1:56 PM

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,







  • Currently Being Moderated
    Sep 9, 2013 5:41 AM   in reply to iccsi


    Check the folder:

    <cfif Not DirectoryExists(newFolder)>

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


    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points