Skip to content

Commit

Permalink
Filesystem 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Awilum committed Dec 5, 2020
1 parent a4f8a56 commit 523c1fd
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
<a name="1.1.0"></a>
# [1.1.0](https://github.com/atomastic/filesystem) (2020-12-05)
* add ability to extend Filesystem class with Macros.

```php
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.

<a name="1.0.1"></a>
# [1.0.1](https://github.com/atomastic/filesystem) (2020-10-17)
* fix Directory copy() method.
Expand Down

0 comments on commit 523c1fd

Please sign in to comment.