__construct()
__construct(string $key, \app\framework\Component\Storage\Storage $storage, boolean $treeStructure = true, null|string $filter = null)
Constructor
Parameters
string | $key | File key |
\app\framework\Component\Storage\Storage | $storage | Storage to use |
boolean | $treeStructure | (Optional) By default, Directory will only read the first level if items. If set to false, Directory will read all children items and list them as one-dimensional array. |
null|string | $filter | (Optional) Filter to use when reading directory items |