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