If the folder do not exist, this property returns
nil
and setting its value will have no effect.Directory.created read/write property
The Directory.created property set or get a Datetime value indicating when the folder has been created.
Example
local windir = sys.env["windir"]
local dir = sys.Directory(windir)
print("Operating system was created on "..dir.created)