Skip to content

Commit

Permalink
Add link/symlink
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanstowe committed Jun 27, 2015
1 parent 1eed4d3 commit 5e2a992
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions lib/Type/IO/Path.pod
Expand Up @@ -252,6 +252,24 @@ device).
B<NOTE>: This function has not yet been implemented in Rakudo.
=head2 routine symlink
method symlink(IO::Path:D: Str $name --> Bool);
sub symlink(Str $target, Str $name --> Bool);
Create a new symbolic link named as $target (or the name of the invocant in the method form,) to the existing file named C<$name>.
Both forms will return C<True> on success or L<fail|/routine/fail> with L<X::IO::Symlink> if the symbolic link could not be created.
=head2 routine link
method link(IO::Path:D: Str $name --> Bool);
sub link(Str $target, Str $name --> Bool);
Create a new link named as $target (or the name of the invocant in the method form,) to the existing file named C<$name>.
Both forms will return C<True> on success or L<fail|/routine/fail> with L<X::IO::Link> if the link operation could not be performed.
=head2 routine unlink
method unlink(IO::Path:D: --> Bool);
Expand Down

0 comments on commit 5e2a992

Please sign in to comment.