sys.Directory(path) constructor

The Directory constructor returns a Directory value representing a folder (that may or may not exist on disk).

Parameters

path

A string representing the path to the folder. The path may exist physically on a disk or not. To create the folder on a disk, use the Directory:make() method.

If a relative path is given to the Directory constructor, it will be converted to an absolute path (relative to the current working folder).