|
Mailing Lists
|
Home / Groups / ColdFusion Talk (CF-Talk)
Array a directory nameIf your example represents the exact scenario in all cases, I'd probably just use GetFileFromPath() and GetDirectoryFromPath(), in conjunction with ListLast(): <!--- Where OldDir = Internet/Manuals/tests/doc.html ---> <cfset NewDir = "#ListLast(GetDirectoryFromPath(OldDir),'/')#/#GetFileFromPath(OldDir)#"> -Christopher >How do you split a directory name into an array or remove a section from the name? > >Example > >dir = Internet/Manuals/tests/doc.html > >into > >newdir = tests/doc.html > >Thank you >Keith |
May 18, 2013
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||