Symfony\Component\Finder\Finder::notPath
Adds rules that filenames must not match.
You can use patterns (delimited with / sign) or simple strings. $finder->notPath('some/special/dir') $finder->notPath('/some\/special\/dir/') // same as above Use only / as dirname separator.
Signature
public function notPath(string
$pattern )
Parameters
$pattern
— string- A pattern (a regexp or a string)
Returns
- Finder
- The current Finder instance