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

File.directoryreadonly property



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

Example


local interpreter = sys.File(arg[0])

-- prints interpreter executable ("luart.exe") directory
print(interpreter.directory.fullpath)