Luart
Comprehensive Windows framework to develop in Lua
modules > sys > File > filename

File.filenamereadonly property



The File.filename property returns a string representing the file name and extension of the File.

Example


local file = sys.File("doc\\test.txt")

-- outputs "test.txt"
print("file.filename: "..file.filename)