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