Skip Menu |

This queue is for tickets about the Mac-FSEvents CPAN distribution.

Report information
The Basics
Id: 100939
Status: open
Priority: 0/
Queue: Mac-FSEvents

People
Owner: Nobody in particular
Requestors: preaction [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Allow list of paths to watch in single watcher
FSEventsStreamCreate appears to take a CFArray of paths to watch (https://developer.apple.com/library/mac/documentation/Darwin/Reference/FSEvents_Ref/index.html#//apple_ref/c/func/FSEventStreamCreate). I'd love to expose this so that: my $fsev = Mac::FSEvents->new( paths => [qw( foo bar baz )], ); and my $fsev = Mac::FSEvents->new( [qw( foo bar baz )] ); works.
On Tue Dec 16 01:36:07 2014, preaction wrote: Show quoted text
> FSEventsStreamCreate appears to take a CFArray of paths to watch > (https://developer.apple.com/library/mac/documentation/Darwin/Reference/FSEvents_Ref/index.html#//apple_ref/c/func/FSEventStreamCreate). > I'd love to expose this so that: > > my $fsev = Mac::FSEvents->new( > paths => [qw( foo bar baz )], > ); > > and > > my $fsev = Mac::FSEvents->new( [qw( foo bar baz )] ); > > works.
Sounds like a great idea!
On Tue Dec 16 16:04:48 2014, RHOELZ wrote: Show quoted text
> On Tue Dec 16 01:36:07 2014, preaction wrote:
> > FSEventsStreamCreate appears to take a CFArray of paths to watch > > (https://developer.apple.com/library/mac/documentation/Darwin/Reference/FSEvents_Ref/index.html#//apple_ref/c/func/FSEventStreamCreate). > > I'd love to expose this so that: > > > > my $fsev = Mac::FSEvents->new( > > paths => [qw( foo bar baz )], > > ); > > > > and > > > > my $fsev = Mac::FSEvents->new( [qw( foo bar baz )] ); > > > > works.
> > Sounds like a great idea!
I ended up deciding against the arrayref argument to the constructor. I can add it if you'd like, but at the moment I think being too clever about the constructor might not be a good idea. So, apparently one path I'm okay with, but an arrayref of paths is right out.
On Thu Dec 18 04:09:22 2014, preaction wrote: Show quoted text
> On Tue Dec 16 16:04:48 2014, RHOELZ wrote:
> > On Tue Dec 16 01:36:07 2014, preaction wrote:
> > > FSEventsStreamCreate appears to take a CFArray of paths to watch > > > (https://developer.apple.com/library/mac/documentation/Darwin/Reference/FSEvents_Ref/index.html#//apple_ref/c/func/FSEventStreamCreate). > > > I'd love to expose this so that: > > > > > > my $fsev = Mac::FSEvents->new( > > > paths => [qw( foo bar baz )], > > > ); > > > > > > and > > > > > > my $fsev = Mac::FSEvents->new( [qw( foo bar baz )] ); > > > > > > works.
> > > > Sounds like a great idea!
> > I ended up deciding against the arrayref argument to the constructor. > I can add it if you'd like, but at the moment I think being too clever > about the constructor might not be a good idea. So, apparently one > path I'm okay with, but an arrayref of paths is right out.
That's fine with me; we can always add it later should the need arise.