You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.