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

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


path.getdirectory

The path.getdirectory function returns the directory portion of a path, with any file name removed.

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

Parameters

path is the file system path to be split.

Return Value

The directory portion of the path, with any file name removed. If the path does not include any directory information, the "." (single dot) current directory is returned.

Clone this wiki locally