Skip to content

Commit

Permalink
chore: Add skipFilenames method to FileList class
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ewilan-riviere committed May 30, 2024
1 parent 89c95ae commit f890096
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand Down

0 comments on commit f890096

Please sign in to comment.