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

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


path.getdrive

The path.getdrive function returns the drive letter portion of a path, if present.

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

Parameters

path is the file system path to be split.

Return Value

The drive letter portion of the path, if one is specified. Otherwise, nil.

Clone this wiki locally