io.extractFilename
Description
Get the filename segment only from a path string.

Parameters
fullPath string

Return value
filename string

Example
print(io.extractFilename("C:\\Some Folder\\Some Subfolder\\filename.txt"))

Comments

See also
io.extractPath
io.getSpecialFolderPath

Back