Spec-Zone.ru › ColdFusion

getFileFromPath

Extracts a filename from an absolute path.

getFileFromPath(path) → returns string

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

    Argument Reference

    path string
    Required

    Examples
    Sample code invoking the getFileFromPath function

    Basic Example

    getFileFromPath("C:\temp\file.txt")

    Expected Result: file.txt

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

    Spec-Zone.ru

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