Comprehensive Windows framework to develop in Lua
modules > sys > File > path

File.pathreadonly property

The File.path property returns a string representing the path of the file (fullpath without the filename). The path is set during the call to the File constructor, relative to the current working directory at this time.


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

-- outputs the path, for example "C:\\luart\\doc\\"
print("file.path: "..file.path)