contractPath
Opposite of expandpath.Tries to match a given absolute path to mappings in the environment and will return a path that is contracted by the shortest matched mapping. If there are no matches, Lucee returns the absolute path it was given.
contractPath(path [, placeholder]) → returns string
Argument Reference
path_absolute string Required
The absolute path
placeholder boolean
Default: false
false
A boolean indicating whether Lucee placeholder names should be prefixed to the path.
Examples Sample code invoking the contractPath function
© 2012–present Foundeo, Inc. and the CFDocs contributors.
Licensed under the MIT License.
ColdFusion is a trademark of Adobe Systems Incorporated.
https://cfdocs.org/contractpath