path.getdrive - premake/premake-4.x GitHub Wiki
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.