Add iterator in PathSet for superset and subset combination
This commit is contained in:
1 parent
f24e05b7b6
commit
15437361e1
1 file changed
+9
@@ -111,6 +111,15 @@ class PathSet {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
*all(path, depth) {
|
||||||
|
var p = path.slice();
|
||||||
|
for (let i = 0; i < p.length; ++ i)
|
||||||
|
if (p[i] === '*')
|
||||||
|
p[i] = null;
|
||||||
|
yield* this.find(p, depth || 0, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
*find(pattern, depth, wildcard) {
|
*find(pattern, depth, wildcard) {
|
||||||
var sets = [];
|
var sets = [];
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user