Skip to content

Apply filter to newly created files#62

Merged
mikeal merged 1 commit into
mikeal:masterfrom
paton:patch-1
Sep 11, 2014
Merged

Apply filter to newly created files#62
mikeal merged 1 commit into
mikeal:masterfrom
paton:patch-1

Conversation

@paton

@paton paton commented Sep 10, 2014

Copy link
Copy Markdown
Contributor

This applies the filter function to new files.

Currently the filter is only applied on the initial walk. This causes filtered-out files to be watched after they're edited at least once.

For example, I have a filtered-out file called "built.js" with compiled javascript. When I fs.writeFile to built.js, it's detected as a new file and is watched from that point forward, thereby bypassing the filter function.

Thoughts on this?

mikeal added a commit that referenced this pull request Sep 11, 2014
Apply filter to newly created files
@mikeal mikeal merged commit 2718034 into mikeal:master Sep 11, 2014
@paton

paton commented Sep 11, 2014

Copy link
Copy Markdown
Contributor Author

Thank you! If you could publish this to NPM that'd be much appreciated 👍

@eirikurn

Copy link
Copy Markdown

When will this be published? The filter feature is basically unusable without this fix.

Thanks

@mikeal

mikeal commented Oct 21, 2014

Copy link
Copy Markdown
Owner

published v0.12.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants