Skip to content
mba105 edited this page Sep 24, 2014 · 2 revisions

Home > [Scripting Reference](Scripting Reference) > path.getname


path.getname

The path.getname function returns the file name and extension, with any directory information removed.

#!lua
p = path.getname("path")

Parameters

path is the file system path to be split.

Return Value

The file name and extension, with no directory information.

Clone this wiki locally