Skip to content

Commit

Permalink
[io grant] Implement IO::Path.concat-with
Browse files Browse the repository at this point in the history
- Does what .child used to do
- .child will be changed to throw for non-child paths
  • Loading branch information
zoffixznet committed Apr 8, 2017
1 parent 50aea2b commit 966a7e3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/IO/Path.pm
Expand Up @@ -329,6 +329,10 @@ my class IO::Path is Cool {
);
}

method concat-with (IO::Path:D: Str() \what) {
self.bless: :path($!SPEC.join: '', $!path, what), :$!SPEC, :$!CWD;
}

proto method chdir(|) { * }
multi method chdir(IO::Path:D: Str() $path, :$test!) {
DEPRECATED(
Expand Down

0 comments on commit 966a7e3

Please sign in to comment.