Skip to content

Commit

Permalink
Revert "[io grant] Remove IO::Path.watch"
Browse files Browse the repository at this point in the history
  • Loading branch information
zoffixznet committed May 28, 2017
1 parent 21fd2c4 commit 65941b2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/core/IO/Path.pm
Expand Up @@ -213,6 +213,12 @@ my class IO::Path is Cool does IO {
multi method IO { self }
method open(IO::Path:D: |c) { IO::Handle.new(:path(self)).open(|c) }

#?if moar
method watch(IO::Path:D:) {
IO::Notification.watch-path($.absolute);
}
#?endif

proto method absolute(|) { * }
multi method absolute (IO::Path:D:) {
$!abspath //= $!SPEC.rel2abs($!path,$!CWD)
Expand Down

0 comments on commit 65941b2

Please sign in to comment.