makeDirs(p)
Last updated September 21, 2004
Version: 1 | Requires: ColdFusion MX | 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:
Parameters:
| Name | Description | Required |
|---|---|---|
| p | The path to create. | Yes |
Full UDF Source:
<cfscript>
/**
* 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();
}
</cfscript>
Search CFLib.org
Latest Additions
Robby Lansaw added
getComponentProp...
3 day(s) ago
Dave Anderson added
iniToStruct
25 day(s) ago
Dave Anderson added
deDupeArray
25 day(s) ago
Richard added
dice
27 day(s) ago
Top Rated
backupDatabase
Rated 5.0, 22 time(s)
indentXml
Rated 5.0, 10 time(s)
generateSsccAsn
Rated 5.0, 4 time(s)
highlightAndCrop
Rated 5.0, 4 time(s)