robrich / gulp-ignore

plugin for gulp to ignore files in the stream based on file characteristics
MIT License
121 stars 10 forks source link

Better file matching? #8

Closed ghost closed 8 years ago

ghost commented 8 years ago

I would expect any one of the globs /home/dev/devenv/dappsys/src/sol/token/old_asset/*, /home/dev/devenv/dappsys/src/sol/token/old_asset/*.*, and /home/dev/devenv/dappsys/src/sol/token/old_asset/*.sol to match the path /home/dev/devenv/dappsys/src/sol/token/old_asset/asset0.sol, but it appears that none of them presently do.

Edit: I'm assuming this is a bug, not a feature. Please correct me if I'm wrong here.

robrich commented 8 years ago

What is your base directory?

ghost commented 8 years ago

Ah, okay. That appears to have been the piece I was missing. I'd been operating under the impression it matched files based on file.path. Subtracting file.base from my globs fixed it.