StripExt
This function removes the file extension from a file path.
Syntax
- string StripExt(string path)
Parameters
- path: the file path to process.
Returns
Returns the file directory and name, without the extension part.
Example
local path = "MyFile.txt"
path = FileSystem:RealPath(path)
--Remove the extension
System:Print((FileSystem:StripExt(path)))