gulpjs / glob-stream

Readable streamx interface over anymatch.
MIT License
178 stars 51 forks source link

Can't make minimal code to work on windows...please help #23

Closed ruifortes closed 10 years ago

ruifortes commented 10 years ago

Hello. Shouldn't this code work? SO is windows 7 64bit?

  var gs = require('glob-stream')

  var stream = gs.create("./js/*.js")

  stream.on('data', function(file){
    console.log(file) // never reaches here
  });

this one works fine

  glob = require("glob")

  glob("./js/*.js", null, function (er, files) {
    console.log("num files = " + files.length) // print num files = 3
  })

Am I missing something here??

Thanks

yocontra commented 10 years ago

node version?

ruifortes commented 10 years ago

v0.10.31

ruifortes commented 10 years ago

ok...I got it. I used some "special" characters in project path I used "[" and "]" and that seams to break things. These are valid paths in windows though.

yocontra commented 10 years ago

@ruifortes There is a bug open for this already, but its a minimatch bug (a library we use) not gulp

ruifortes commented 10 years ago

Yep...just found that too. Hope they can fix it soon. Thanks