getFileFromPath

Extracts a filename from an absolute path.

getFileFromPath(path) → returns string

Argument Reference

path string
Required

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