File.path readonly 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.

Example

local file = sys.File("doc\\test.txt") -- outputs the path, for example "C:\\luart\\doc\\" print("file.path: "..file.path)