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);

Copy

Copy the filesystem:

$filesystem->copy();

Count iterator

Count the filesystem iterator:

$filesystem->countIterator();

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();

Refresh iterator

Refresh the filesystem iterator:

$filesystem->refreshIterator();
Edit on GitHub