Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make dir return IO::Path objects.
  • Loading branch information
colomon committed Jun 3, 2013
1 parent 95dde43 commit 1bed6b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/CORE.setting
Expand Up @@ -3744,7 +3744,7 @@ sub slurp($path?) is unsafe {
sub spurt($path,$text) is unsafe { Q:CgOp { (rnull (spurt (unbox str (@ {$path.Str})) (unbox str (@ {$text.Str})))) } }
sub dir($directory = '.', Mu :$test = none('.','..')) is unsafe {
grep $test, Q:CgOp { (dir (obj_getstr {$directory})) };
Q:CgOp { (dir (obj_getstr {$directory})) }.grep($test).map(*.path);
}
my class Instant {
Expand Down

0 comments on commit 1bed6b7

Please sign in to comment.