Skip to content

Commit

Permalink
Testing new files against the watcher's pattern. Big mistake letting …
Browse files Browse the repository at this point in the history
…this behind.
  • Loading branch information
arboleya committed Dec 10, 2012
1 parent 2726e05 commit 3911cd0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion lib/fs-util.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/fs-watcher.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ class DirWatcher
if fs.statSync( created ).isDirectory()
@tree[created] = new DirWatcher @watcher, created, @, true
else if fs.statSync( created ).isFile()
@tree[created] = new FileWatcher @watcher, created, @, true
if @watcher.pattern.test fullpath
@tree[created] = new FileWatcher @watcher, created, @, true

diff:->
prev = @tree
Expand Down

0 comments on commit 3911cd0

Please sign in to comment.