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();
}
blog comments powered by Disqus

Search CFLib.org


Latest Additions

Kevin Cotton added
date2ExcelDate
May 5, 2016

Raymond Camden added
CapFirst
April 25, 2016

Chris Wigginton added
loremIpsum
January 18, 2016

Gary Stanton added
calculateArrival...
November 19, 2015

Sebastiaan Naafs - van Dijk added
getDaysInQuarter
November 13, 2015

Created by Raymond Camden / Design by Justin Johnson