File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -504,6 +504,16 @@ representing relative paths, filtered by L<smartmatching|
504
504
/language/operators#infix_~~ > their names (as strings) against the C < :test >
505
505
parameter.
506
506
507
+ Since the tests are performed against Str arguments, not IO, the tests are
508
+ executed in the C < $*CWD > , instead of the target directory.
509
+ When testing against file test operators, this won't work:
510
+
511
+ dir('mydir', test => { .IO.d })
512
+
513
+ while this will:
514
+
515
+ dir('mydir', test => { "mydir/$_".IO.d })
516
+
507
517
B < NOTE: > a C < dir > call opens a directory for reading, which counts towards
508
518
maximum per-process open files for your program. Be sure to exhaust returned
509
519
L < Seq > before doing something like recursively performing more C < dir > calls.
You can’t perform that action at this time.
0 commit comments