Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
implement cwd, jnthn++
  • Loading branch information
moritz committed Jul 12, 2010
1 parent bb6df24 commit cfca4fb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/core/IO.pm
Expand Up @@ -244,4 +244,12 @@ multi sub mkdir($path as Str, $mode = 0) {
$! ?? fail($!) !! True
}

multi sub cwd() {
my $pwd;
try {
$pwd = pir::new__Ps('OS').cwd();
}
$! ?? fail($!) !! $pwd;
}

# vim: ft=perl6

0 comments on commit cfca4fb

Please sign in to comment.