CFLib.org – Common Function Library Project

makeDirs(p)

Last updated September 21, 2004

author

Jorge Iriso

Version: 1 | Requires: CF6 | Library: FileSysLib

Description:
It will create all non existant directories in a path withouth looping by using java.io.File class.

Return Values:
Returns nothing.

Example:

#makeDirs('c:\www\grandpa\parent\son')#

Parameters:

Name Description Required
p The path to create. Yes

Full UDF Source:

/**
 * Create all non exitant directories in a path.
 * 
 * @param p      The path to create. (Required)
 * @return Returns nothing. 
 * @author Jorge Iriso (jiriso@fitquestsl.com) 
 * @version 1, September 21, 2004 
 */
function makeDirs(p){
    createObject("java", "java.io.File").init(p).mkdirs();
}

Search CFLib.org


Latest Additions

Raymond Camden added
QueryDeleteRows
November 04, 2017

Leigh added
nullPad
May 11, 2016

Raymond Camden added
stripHTML
May 10, 2016

Kevin Cotton added
date2ExcelDate
May 05, 2016

Raymond Camden added
CapFirst
April 25, 2016

Created by Raymond Camden / Design by Justin Johnson