Filesystem Class

Create object

Create a object of the Filesystem\Filesystem class:

$filesystem = new Filesystem\Filesystem();


Init the class:

$filesystem->init(string $root, bool $recursive, array $filterArray) : self;


Copy the filesystem:

$filesystem->copy() : self;

Count iterator

Count the filesystem iterator:

$filesystem->countIterator() : ?int;

Get iterator

Get the filesystem iterator:

$filesystem->getIterator() : Traversable;

Refresh iterator

Refresh the filesystem iterator:

$filesystem->refreshIterator() : self;

Get array

Get the filesystem array:

$filesystem->getArray() : array;

Get sort array

Get the sorted filesystem array:

$filesystem->getSortArray(int $flag) : array;
Edit on GitHub