From f8900963cf3b92e4fd2d3186efa169cb24bd4d54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ewilan=20Rivi=C3=A8re?= Date: Thu, 30 May 2024 17:55:18 +0200 Subject: [PATCH] chore: Add skipFilenames method to FileList class The `skipFilenames` method was added to the FileList class. This method allows skipping specific filenames during the file scanning process. This change enhances the functionality of the FileList class by providing more control over the files to include or exclude. --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 03c60f6..9775317 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ $list->isSuccess(); // Success status as `bool` Show hidden files, default is `false`. ```php -$list = FileList::make('/path/to/scan')->run(); +$list = FileList::make('/path/to/scan')->showHidden()->run(); ``` Save as JSON. @@ -67,6 +67,12 @@ Skip extensions, case insensitive. $list = FileList::make('/path/to/scan')->skipExtensions(['txt', 'md'])->run(); ``` +Skip filenames. + +```php +$list = FileList::make('/path/to/scan')->skipFilenames(['file.txt', 'README.md'])->run(); +``` + Disable recursive scan. ```php