getFileFromPath

Extracts a filename from an absolute path.

getFileFromPath(filePath) → returns string

Argument Reference

filePath string
Required

Lucee does not accept filePath as a named argument; it uses path.

Examples
Sample code invoking the getFileFromPath function

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

Expected Result: file.txt

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub