Closed nstaeger closed 9 years ago
I believe this is because glob-stream always processes negative globs last, so:
[
'**',
'!assets/**',
'assets/two/**'
]
Is equivalent to:
[
'**',
'assets/two/**',
'!assets/**'
]
Same issue as https://github.com/gulpjs/gulp/issues/837
Hi,
lets pretend, I have the following folder structure:
I would now like to stream over all files, but not the assets, but
assets/two
. In other words: I would like to have all files, except the asset files, that are in the subfoldersone/
,three/
. I could do the following glob to do so:But if I would now add another folder within
assets
I would also need to add it as negative glob within my array. Much more intuitive would be the following glob:But that one is not working. I cannot exclude a folder, and include a subfolder back in. But I think that would be very helpful. I am also using node-glob-all, which supports the second glob as expected. It seems like the structure of glob-stream does not support that kind of glob. Is that right? Or am I missing something out? Perhaps you would like to consider using node-glob-all in the future...
Best
PS: I am using gulp, which in the end uses your extension to load the files.