We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 005f95b commit 5b79d39Copy full SHA for 5b79d39
src/deit/filesystem/Finder.php
@@ -18,6 +18,16 @@ class Finder implements \IteratorAggregate, \Countable {
18
const TYPE_FILE = 'files';
19
const TYPE_FOLDER = 'folders';
20
21
+ /**
22
+ * Creates a new finder
23
+ * @param string $path The path to search
24
+ * @return Finder
25
+ * @throws
26
+ */
27
+ public static function create($path) {
28
+ return new self($path);
29
+ }
30
+
31
/**
32
* The path to search in
33
* @var string
@@ -199,4 +209,4 @@ public function count() {
199
209
}
200
210
201
211
202
-
212
0 commit comments