Closed davidebbo closed 12 years ago
Hmmm, I'm guessing something failed because path.sep didn't exist in Node 0.6.
Suggestion? Maybe just rev the engine requirement in package.json?
Or an alternative is to pass the separator as an fsOption (and default to "/" if not there).
I think we still need to support node 0.6.x for now. I'd rather "just work" on windows without having to pass in the separator.
In the absence of path.sep, one possibility is to infer the correct separator by calling path.normalize("/"), which returns "/" on Mac and "\" on Windows.
I ended up just skipping the 'root path must start in /' check on Windows. I was hoping to find some kind of path.isabsolute helper but didn't. Figured it's better to live without this check on Windows than not having work at all!