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

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


path.getbasename

The path.getbasename function returns the base file portion of a path, with the directory and file extension removed.

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

Parameters

path is the file system path to be split.

Return Value

The base name portion of the supplied path, with any directory and file extension removed.

Clone this wiki locally