This function returns the extension part of a file path.
Parameter | Description |
---|---|
path | full or relative file path |
Returns the extension part of the specified path.
local path = "C:/Windows/explorer.exe"
Print("Full path: " .. path)
Print("File name: " .. StripDir(path))
Print("File directory: " .. ExtractDir(path))
Print("File extension: " .. ExtractExt(path))
Print("File name without extension: " .. StripAll(path))
Print("File path without extension: " .. StripExt(path))