Releases: glowyphp/filesystem
Releases · glowyphp/filesystem
5.0.1
5.0.0
4.0.0
3.2.0
3.1.0
3.0.0
2.2.0
2.1.0
2.0.0
v1.1.0
-
add ability to extend Filesystem class with Macros.
use Atomastic\Filesystem\Filesystem; use Atomastic\Macroable\Macroable; Filesystem::macro('countFiles', function($path) { return count(iterator_to_array($this->find()->in($path)->files(), false)); }); $filesytem = new Filesystem(); echo $filesytem->countFiles('/directory');
-
improve tests for directory
create()
method.