Directory.exists readonly property



The Directory.exists property returns a boolean value indicating if the folder exists physically on the drive or not.

Example

local SysWOW64 = sys.Directory(sys.env["windir"].."\\SysWOW64") if SysWOW64.exists then print("Windows 64 bits has been detected") else print("Windows 32 bits has been detected") end