Directory:make() method
Create a folder physically on the disk if it doesn't exists.
Return value
Returns true if the operation succeeded or false otherwise (in case of an already existing folder for example).Example
local windir = sys.env["windir"]
local dir = sys.Directory(windir.."\\test")
-- cannot write to the Windows folder
if not dir:make() then
print("Error accessing "..windir..": "..sys.error)
end