File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ use \Yiisoft\Files\FileHelper;
102102use Yiisoft\Files\PathMatcher\PathMatcher;
103103
104104$files = FileHelper::findFiles('/path/to/where/to/search', [
105- 'filter' => (new PathMatcher())->only('**.png', '**.jpg')->except('logo.png'),
105+ 'filter' => (new PathMatcher())->only('**.png', '**.jpg')->except('**/ logo.png'),
106106]);
107107```
108108
Original file line number Diff line number Diff line change @@ -102,7 +102,9 @@ public function only(...$patterns): self
102102 /**
103103 * Set list of patterns that the files or directories should not match.
104104 *
105- * @param PathMatcherInterface|string ...$patterns
105+ * @see https://github.com/yiisoft/strings#wildcardpattern-usage
106+ *
107+ * @param PathMatcherInterface|string ...$patterns Simple POSIX-style string matching.
106108 *
107109 * @return self
108110 */
You can’t perform that action at this time.
0 commit comments