File.directory readonly property



The File.directory property returns a Directory representing the folder that contains the file.

Example

local interpreter = sys.File(arg[-1]) -- prints interpreter executable ("luart.exe") directory print(interpreter.directory.fullpath)