getDirectoryFromPath
Extracts a directory from an absolute path. Returns the absolute path with a trailing slash and omits the filename.
getDirectoryFromPath(path) → returns string
Argument Reference
path string Required
Examples Sample code invoking the getDirectoryFromPath function
getDirectoryFromPath("C:\temp\file.txt") Expected Result: C:\temp\
© 2012–present Foundeo, Inc. and the CFDocs contributors.
Licensed under the MIT License.
ColdFusion is a trademark of Adobe Systems Incorporated.
https://cfdocs.org/getdirectoryfrompath