Renames given directory. NOTE:Ensure that you have the required permissions to run this function.
directoryRename(oldPath, newPath)
→ returns void
DirectoryRename("//12.3.123.123/c_drive/test");
true
false
, expects all parent directories to exist. true
will generate necessary directories.
<cfset renameDirectory = "someDirPath" />
<cfset rename = "newName" />
<cfset directoryRename(renameDirectory,newName)>
Signup for cfbreak
to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.