joyent/node — Issue #2309: __dirname path needs escaping on windows
Author: springmeyer
Created: 2011-12-09 23:00:20+00:00
State: open

__dirname on windows with node v0.6.5 appears to return paths like:

```
c:\some\path
```

I think these either need to be provided in an escaped form like: `c:\\some\\path` or unix -like: `c:/some/path`. `path.resolve()` appears to do the right thing with both of those but not `c:\some\path`. Resolving `c:\foo` results in `c:\\foo\foo`