File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
src/core/etl/src/Flow/ETL Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ final class Path
16
16
17
17
private string $ filename ;
18
18
19
+ private ?bool $ isPattern = null ;
20
+
19
21
private ?Partitions $ partitions = null ;
20
22
21
23
private string $ path ;
@@ -206,7 +208,13 @@ public function isLocal() : bool
206
208
207
209
public function isPattern () : bool
208
210
{
209
- return $ this ->isPathPattern ($ this ->path );
211
+ if ($ this ->isPattern !== null ) {
212
+ return $ this ->isPattern ;
213
+ }
214
+
215
+ $ this ->isPattern = $ this ->isPathPattern ($ this ->path );
216
+
217
+ return $ this ->isPattern ;
210
218
}
211
219
212
220
public function matches (self $ path ) : bool
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ public function add(Row ...$rows) : self
62
62
}
63
63
64
64
/**
65
- * return array<Row>.
65
+ * @ return array<Row>
66
66
*/
67
67
public function all () : array
68
68
{
You can’t perform that action at this time.
0 commit comments