public function Finder::path in Database Sanitize 7
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.
Parameters
string $pattern A pattern (a regexp or a string):
Return value
$this
See also
File
- vendor/
symfony/ finder/ Finder.php, line 246
Class
- Finder
- Finder allows to build rules to find files and directories.
Namespace
Symfony\Component\FinderCode
public function path($pattern) {
$this->paths[] = $pattern;
return $this;
}