Filesystem Class

Create object

Create a object of the Filesystem\Filesystem class:

$filesystem = new Filesystem\Filesystem();

Init

Init the class:

$filesystem->init(string $root, boolean $recursive, array $filterArray);

Get iterator

Get the filesystem iterator:

$filesystem->getIterator();

Get array

Get the filesystem array:

$filesystem->getArray();

Get sort array

Get the sorted filesystem array:

$filesystem->getSortArray();

Update iterator

Update the filesystem iterator:

$filesystem->updateIterator();
Edit on GitHub