From 975c832d653cb16f0bf792d05962faacfecd39b3 Mon Sep 17 00:00:00 2001 From: Maurice Aubrey Date: Sat, 19 May 2018 17:51:27 -0700 Subject: [PATCH] ignore missing files --- lib/Filesys/Notify/Simple.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Filesys/Notify/Simple.pm b/lib/Filesys/Notify/Simple.pm index eb1a55a..30ac206 100644 --- a/lib/Filesys/Notify/Simple.pm +++ b/lib/Filesys/Notify/Simple.pm @@ -15,6 +15,8 @@ sub new { Carp::croak('Usage: Filesys::Notify::Simple->new([ $path1, $path2 ])'); } + @$path = grep { -e $_ } @$path; + my $self = bless { paths => $path }, $class; $self->init;