filename(
FILEPATH
)

The filename( function extracts the filename from a complete path and filename.


Parameters

This function has one parameter:

filepath – a combined path and file name. This may be either a UNIX path or an HFS path. (See Files and Folders for more information.)


Description

This function extracts the filename from a complete path and filename.

filename("/Users/patjohnson/Documents/Alaska/Denali23.jpg") ☞ Denali23.jpg
filename("HD:Trips:Family:July4.jpg") ☞ July4.jpg

Note: This function is equivalent to:

array(thetext,arraysize(thetext,info("foldersepchar")),info("foldersepchar"))

See Also


History

VersionStatusNotes
10.0No ChangeCarried over from Panorama 6.0.