From fc357e15ee9f0c1b0f2f84b50aa2c5433e787885 Mon Sep 17 00:00:00 2001 From: Andrzej Lichnerowicz Date: Sat, 14 Nov 2015 00:19:02 +0100 Subject: [PATCH 1/2] do not treat non-existent paths as dirs to prevent further scanning --- lib/listen/directory.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/listen/directory.rb b/lib/listen/directory.rb index b57e1480..23023266 100644 --- a/lib/listen/directory.rb +++ b/lib/listen/directory.rb @@ -74,7 +74,7 @@ def self.detect_type(full_path) rescue Errno::ENOENT # TODO: ok, it should really check the record here # report as dir for scanning - :dir + :file end end end From 19e91be7d8561f22d432ac8a0056116cb2999a5e Mon Sep 17 00:00:00 2001 From: Andrzej Lichnerowicz Date: Sat, 14 Nov 2015 09:36:37 +0100 Subject: [PATCH 2/2] explicitly mark non-existent paths as :none --- lib/listen/directory.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/listen/directory.rb b/lib/listen/directory.rb index 23023266..fe739b8c 100644 --- a/lib/listen/directory.rb +++ b/lib/listen/directory.rb @@ -74,7 +74,7 @@ def self.detect_type(full_path) rescue Errno::ENOENT # TODO: ok, it should really check the record here # report as dir for scanning - :file + :none end end end