function 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 $finder->notPath(['some/file.txt', 'another/file.log'])
Use only / as dirname separator.
Parameters
string|string[] $patterns A pattern (a regexp or a string) or an array of patterns:
Return value
$this
See also
File
-
vendor/
symfony/ finder/ Finder.php, line 285
Class
- Finder
- Finder allows to build rules to find files and directories.
Namespace
Symfony\Component\FinderCode
public function notPath(string|array $patterns) : static {
$this->notPaths = array_merge($this->notPaths, (array) $patterns);
return $this;
}