StripExt

This function removes the file extension from a file path.

Syntax

Parameters

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)))