Spec-Zone.ru › ColdFusion

expandPath

Creates an absolute, platform-appropriate path that is equivalent to the value of 'path', appended to the base path. This function (despite its name) can accept an absolute or relative path in the 'path' attribute.

expandPath(path) → returns string

  • CF
  • Lucee
  • BL 1.0.0+
  • See Also: contractPath

    Argument Reference

    path string
    Required

    Relative or absolute directory reference or filename, within the current directory, (.\ and ..\) to convert to an absolute path. Can include forward or backward slashes.

    Examples
    Sample code invoking the expandPath function

    Expand the current path

    expandPath("./")

    Expand the parent folder path

    expandPath("../")

    Expand the path to a subfolder

    expandPath("path/to/subfolder")

    © 2012–present Foundeo, Inc. and the CFDocs contributors.
    Licensed under the MIT License.
    ColdFusion is a trademark of Adobe Systems Incorporated.
    https://cfdocs.org/expandpath

    Spec-Zone.ru

    Настройки Оффлайн Что нового Помощь О нас
    Spec-Zone .ru
    спецификации, руководства, описания, API