We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Home > [Scripting Reference](Scripting Reference) > path.getdrive
The path.getdrive function returns the drive letter portion of a path, if present.
#!lua p = path.getdrive("path")
path is the file system path to be split.
The drive letter portion of the path, if one is specified. Otherwise, nil.