Modding Tools > Lucas' Simpsons Hit & Run Mod Launcher > Hacks > Mod Requirable Hacks > Custom Files > Custom Lua Functions > General Functions > RemoveFileExtension

RemoveFileExtension

Returns the the specified filename path.Returns the given file path or file name without the file extension.

Syntax

RemoveFileExtension( <path> )
  • path: The path or filename of the file you want to remove the extension from.

Examples

-- Returns "example"
RemoveFileExtension("example.mfk")

-- Returns "scripts\example"
RemoveFileExtension("scripts\\example.mfk")

Notes

No additional notes.

Version History

Unknown Version

Added this function.

Donut Team © 2023 · v4.0