Lua:extractFileName

From Cheat Engine
Revision as of 16:45, 21 June 2026 by Leunsel (talk | contribs) (Initial page creation.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

<> Lua API Reference

function extractFileName(filepath) : string

Returns the filename part of the given path.

Function Parameters

Parameter Type Description
filepath String The path to extract the filename from.

Returns

string — The filename part of the given path.

Examples

local filename = extractFileName("C:\\\\Temp\\\\example.txt")

print(filename)
-- example.txt

Main Pages

Core Lua documentation entry points

Lua
Script Engine